Roassal Scalability

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Roassal Scalability

MathieuDehouck

Hi

 

I have Roassal as speed with 30,000 elements as with 1,000 elements.

But still I have to udpate the view when resizing the window and translating the view.

Does anyone know how to send the view an event when I resize the view ?

 

Regards

Mathieu

 

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

abergel
Cool!!!!!

You can do this with event, but I have the impression that the camera should trigger the update of the view.

Cheers,
Alexandre


On Jul 2, 2013, at 8:43 AM, [hidden email] wrote:

> Hi
>
>  
> I have Roassal as speed with 30,000 elements as with 1,000 elements.
>
> But still I have to udpate the view when resizing the window and translating the view.
>
> Does anyone know how to send the view an event when I resize the view ?
>
>  
> Regards
>
> Mathieu
>
>  

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

MathieuDehouck
In reply to this post by MathieuDehouck

Hi

 

I think I've understood how events work.

It's very speed, with 30 000 nodes it's very nice, and even with 12 000 nodes and 12 000 edges (Object with all subclasses) it is fine more fluent than before.

I'll commit something so that you can try.

 

Regards

Mathieu

 

 

 

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

Tudor Girba-2
What did you rely the solution on?

Did you measure the performance difference?

Cheers,
Doru


On Tue, Jul 2, 2013 at 4:12 PM, <[hidden email]> wrote:

Hi

 

I think I've understood how events work.

It's very speed, with 30 000 nodes it's very nice, and even with 12 000 nodes and 12 000 edges (Object with all subclasses) it is fine more fluent than before.

I'll commit something so that you can try.

 

Regards

Mathieu

 

 

 

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

MathieuDehouck

 

The solution here is to draw only visible elements, we keep them in a list which is regularly refreshed ( zoom, drag ...).

I have not yet measure the speed gain, but it is obvious.

 

The gain is during the visualization, not during the layouting.


MCHttpRepository
    location: 'http://smalltalkhub.com/mc/MathieuDehouck/RoassalAlgorithm/main'
    user: ''
    password: ''

package: RoassalScalability

Regards

Mathieu
 

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

abergel
Hi!

I have a problem when I load the RoassalScalability package. I cannot open an easel anymore.

If I define the following method:

ROViewStack>>viewDo: aBlock
        views ifNil: [ ^ self ].
        views do: [:v | aBlock value: v ].

Impressive, check this out:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| rawView view |
rawView := ROView new.
view := ROMondrianViewBuilder view: rawView.
"-------------"
"-------------"
view nodes: (1 to: 400000).
view gridLayout.
"-------------"
"-------------"
ROEaselMorphic new populateMenuOn: view.
view open
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

It takes a couple of seconds to opening it, but it moves well!
400 000 elements. Wow...

Apparently, the examples are not visible anymore. Maybe something wrong with the intersections? Do you consider children elements or something?

Cheers,
Alexandre


On Jul 2, 2013, at 10:28 AM, [hidden email] wrote:

>  
> The solution here is to draw only visible elements, we keep them in a list which is regularly refreshed ( zoom, drag ...).
>
> I have not yet measure the speed gain, but it is obvious.
>
>  
> The gain is during the visualization, not during the layouting.
>
>
> MCHttpRepository
>     location: 'http://smalltalkhub.com/mc/MathieuDehouck/RoassalAlgorithm/main'
>     user: ''
>     password: ''
>
> package: RoassalScalability
>
> Regards
>
> Mathieu
>  
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

MathieuDehouck

 

I still can open easel, it's weird, or maybe I forget to put ROViewStack>>viewDo:  in the proper package (it must be that).

And examples still works, just they disappear at certain positions, I will have a look at it.

It's just like minimap, it does not act as a cameraTranslated, but it is so...

 

And another point, I cannot create a view with more than 50 000 nodes, my VM crashes (I'm under Ubuntu 13.04), so 400 000, sounds like utopia.

 

Regards

Mathieu

 

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

MathieuDehouck

Le 03.07.2013 11:22, [hidden email] a écrit :

I still can open easel, it's weird, or maybe I forget to put ROViewStack>>viewDo:  in the proper package (it must be that).

And examples still works, just they disappear at certain positions, I will have a look at it.

It is a question of refreshing camera information, because since you have resized the window (dragging one corner) then it displays examples properly.

 

Mathieu

 

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

MathieuDehouck

Examples work well, I corrected the problem.

But know there is something the minimap. It seems that the minimap draws exactly the same thing as the view so, as we only display visible elements, we only draw what is visible on the view on the minimap.

We should find an other way of drawing the minimap.

Regards

Mathieu

 

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

MathieuDehouck

 

Ok, minimap fixed.

Load this:

Gofer new 
	smalltalkhubUser: 'MathieuDehouck' project: 'RoassalAlgorithm';
	package: 'RoassalScalability';
	load


And try examples or anything you want.

If there is a problem tell me.

Regards

Mathieu

 

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

abergel
In reply to this post by MathieuDehouck
> And another point, I cannot create a view with more than 50 000 nodes, my VM crashes (I'm under Ubuntu 13.04), so 400 000, sounds like utopia.

I use OSX. Maybe some limitation of the memory?

Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

abergel
In reply to this post by MathieuDehouck
It works well.
Apparently, when you maximize a window, things they weird. For example, maximize the easel window, and press the examples button
Can you reproduce this?

Excellent work!

Cheers,
Alexandre


On Jul 3, 2013, at 9:36 AM, [hidden email] wrote:

>  
> Ok, minimap fixed.
>
> Load this:
>
> Gofer new
> smalltalkhubUser: 'MathieuDehouck' project: 'RoassalAlgorithm';
> package: 'RoassalScalability';
> load
>
>
> And try examples or anything you want.
>
> If there is a problem tell me.
>
> Regards
>
> Mathieu
>
>  
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal Scalability

MathieuDehouck

Le 03.07.2013 20:31, Alexandre Bergel a écrit :

It works well.
Apparently, when you maximize a window, things they weird. For example, maximize the easel window, and press the examples button
Can you reproduce this?

Solved.

This problem raised because in ROViewStack>> replaceFirstBy:   the size of the camera was not updated.

Now, the size of the old camera is given to then new one.

 

Mathieu

 

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev