Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #20209 > unrolled thread

JAVAFX Rendering

Started bynataraja gadikota <nataraja.3.833@gmail.com>
First post2012-12-10 03:43 -0800
Last post2012-12-11 09:15 -0800
Articles 7 — 3 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  JAVAFX Rendering nataraja gadikota <nataraja.3.833@gmail.com> - 2012-12-10 03:43 -0800
    Re: JAVAFX Rendering Arne Vajhøj <arne@vajhoej.dk> - 2012-12-10 12:07 -0500
      Re: JAVAFX Rendering nataraja gadikota <nataraja.3.833@gmail.com> - 2012-12-11 09:14 -0800
        Re: JAVAFX Rendering Arne Vajhøj <arne@vajhoej.dk> - 2012-12-11 15:04 -0500
          Re: JAVAFX Rendering nataraja gadikota <nataraja.3.833@gmail.com> - 2013-01-05 22:56 -0800
    Re: JAVAFX Rendering Jim Gibson <jimsgibson@gmail.com> - 2012-12-10 09:49 -0800
      Re: JAVAFX Rendering nataraja gadikota <nataraja.3.833@gmail.com> - 2012-12-11 09:15 -0800

#20209 — JAVAFX Rendering

Fromnataraja gadikota <nataraja.3.833@gmail.com>
Date2012-12-10 03:43 -0800
SubjectJAVAFX Rendering
Message-ID<7cd27ea6-eea8-4b71-bfe5-9a1898b55c73@googlegroups.com>
Hi , 
    I'm looking for a Java based solution for my canvas problem
TCL/TK is not able to handle 3million rectangles on a canvas !
 
https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/Dxh4KyOOojY 

" 
Today I had to visualize a huge Data Structure with 146k nodes 
and each node is a set of polys/rectangles >20 

I've drawn everything on a Canvas , Appximately 3 million objects were created 
All my operations Zoom , Scrolling , Moving Objects on this Canvas have become very SLOW 

I've tested the code with 100 nodes , everything is working fine at that level 
When I increase the DS , I'm looking at these issues . 

Any suggestions previous experiences on how to improve the speed ? 
 " 

Can JavaFX , Java/Swing Handle that much data ? 


Thanks 
Nataraja G 

[toc] | [next] | [standalone]


#20213

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-12-10 12:07 -0500
Message-ID<50c616d0$0$289$14726298@news.sunsite.dk>
In reply to#20209
On 12/10/2012 6:43 AM, nataraja gadikota wrote:
>      I'm looking for a Java based solution for my canvas problem
> TCL/TK is not able to handle 3million rectangles on a canvas !
>
> https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/Dxh4KyOOojY
>
> "
> Today I had to visualize a huge Data Structure with 146k nodes
> and each node is a set of polys/rectangles >20
>
> I've drawn everything on a Canvas , Appximately 3 million objects were created
> All my operations Zoom , Scrolling , Moving Objects on this Canvas have become very SLOW
>
> I've tested the code with 100 nodes , everything is working fine at that level
> When I increase the DS , I'm looking at these issues .
>
> Any suggestions previous experiences on how to improve the speed ?
>   "
>
> Can JavaFX , Java/Swing Handle that much data ?

3 million graphical objects seems like a lot.

But:
- plenty of CPU and RAM
- a 64 bit JVM to utilize the memory
- a GPU that is supported by JavaFX for hardware acceleration
- Java' JIT
then it is probably your best chance for good performance at
this abstraction level.

Arne

[toc] | [prev] | [next] | [standalone]


#20253

Fromnataraja gadikota <nataraja.3.833@gmail.com>
Date2012-12-11 09:14 -0800
Message-ID<3e4d2e12-a9a7-4696-897e-27d742f1d62b@googlegroups.com>
In reply to#20213
Hi Arne , 
     CPU/GPU/RAM is not a problem 
I'm working on huge server's !

with all these do you think I can handle 
even 3million is a small number for my application !!
there could be x10 more 

Thanks
Nataraja G
On Monday, December 10, 2012 10:37:21 PM UTC+5:30, Arne Vajhøj wrote:
> On 12/10/2012 6:43 AM, nataraja gadikota wrote:
> 
> >      I'm looking for a Java based solution for my canvas problem
> 
> > TCL/TK is not able to handle 3million rectangles on a canvas !
> 
> >
> 
> > https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/Dxh4KyOOojY
> 
> >
> 
> > "
> 
> > Today I had to visualize a huge Data Structure with 146k nodes
> 
> > and each node is a set of polys/rectangles >20
> 
> >
> 
> > I've drawn everything on a Canvas , Appximately 3 million objects were created
> 
> > All my operations Zoom , Scrolling , Moving Objects on this Canvas have become very SLOW
> 
> >
> 
> > I've tested the code with 100 nodes , everything is working fine at that level
> 
> > When I increase the DS , I'm looking at these issues .
> 
> >
> 
> > Any suggestions previous experiences on how to improve the speed ?
> 
> >   "
> 
> >
> 
> > Can JavaFX , Java/Swing Handle that much data ?
> 
> 
> 
> 3 million graphical objects seems like a lot.
> 
> 
> 
> But:
> 
> - plenty of CPU and RAM
> 
> - a 64 bit JVM to utilize the memory
> 
> - a GPU that is supported by JavaFX for hardware acceleration
> 
> - Java' JIT
> 
> then it is probably your best chance for good performance at
> 
> this abstraction level.
> 
> 
> 
> Arne

[toc] | [prev] | [next] | [standalone]


#20256

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-12-11 15:04 -0500
Message-ID<50c791b5$0$287$14726298@news.sunsite.dk>
In reply to#20253
On 12/11/2012 12:14 PM, nataraja gadikota wrote:
> On Monday, December 10, 2012 10:37:21 PM UTC+5:30, Arne Vajhøj wrote:
>> On 12/10/2012 6:43 AM, nataraja gadikota wrote:
>>>       I'm looking for a Java based solution for my canvas problem
>>> TCL/TK is not able to handle 3million rectangles on a canvas !
>>>
>>> https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/Dxh4KyOOojY
>>>
>>> "
>>> Today I had to visualize a huge Data Structure with 146k nodes
>>> and each node is a set of polys/rectangles >20
>>>
>>> I've drawn everything on a Canvas , Appximately 3 million objects were created
>>> All my operations Zoom , Scrolling , Moving Objects on this Canvas have become very SLOW
>>>
>>> I've tested the code with 100 nodes , everything is working fine at that level
>>> When I increase the DS , I'm looking at these issues .
>>>
>>> Any suggestions previous experiences on how to improve the speed ?
>>>    "
>>>
>>> Can JavaFX , Java/Swing Handle that much data ?
>>
>> 3 million graphical objects seems like a lot.
>>
>> But:
>> - plenty of CPU and RAM
>> - a 64 bit JVM to utilize the memory
>> - a GPU that is supported by JavaFX for hardware acceleration
>> - Java' JIT
>> then it is probably your best chance for good performance at
>> this abstraction level.
>
 >       CPU/GPU/RAM is not a problem
 > I'm working on huge server's !
 >
 > with all these do you think I can handle
 > even 3million is a small number for my application !!
 > there could be x10 more

I don't know.

You should measure.

But if the combo above can not do it, then I doubt that any
solution at this abstraction level can do it.

So measure.

If it works then fine.

If it does not work then either:
- go low level with the cost of that
- redefine your solution so you do not need so many gui objects

Arne

[toc] | [prev] | [next] | [standalone]


#21012

Fromnataraja gadikota <nataraja.3.833@gmail.com>
Date2013-01-05 22:56 -0800
Message-ID<2eadc9f6-4e4b-4373-8ff3-f37610d379ec@googlegroups.com>
In reply to#20256
Hi guys !@
      http://www.youtube.com/watch?feature=player_embedded&v=HmAmXoTo5Uc

Look at my final result
and thanks for the support  :)

[toc] | [prev] | [next] | [standalone]


#20217

FromJim Gibson <jimsgibson@gmail.com>
Date2012-12-10 09:49 -0800
Message-ID<101220120949515759%jimsgibson@gmail.com>
In reply to#20209
In article <7cd27ea6-eea8-4b71-bfe5-9a1898b55c73@googlegroups.com>,
nataraja gadikota <nataraja.3.833@gmail.com> wrote:

> Hi , 
>     I'm looking for a Java based solution for my canvas problem
> TCL/TK is not able to handle 3million rectangles on a canvas !
>  
> https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/Dxh4KyOOojY 
> 
> " 
> Today I had to visualize a huge Data Structure with 146k nodes 
> and each node is a set of polys/rectangles >20 
> 
> I've drawn everything on a Canvas , Appximately 3 million objects were
> created 
> All my operations Zoom , Scrolling , Moving Objects on this Canvas have
> become very SLOW 
> 
> I've tested the code with 100 nodes , everything is working fine at that
> level 
> When I increase the DS , I'm looking at these issues . 
> 
> Any suggestions previous experiences on how to improve the speed ? 

Sounds like you should consider clipping
(<http://en.wikipedia.org/wiki/Clipping_(computer_graphics)>) when you
have zoomed in and showing low-resolution versions of groups of nodes
(if your data consists of node groups in a tree-like structure) when
you are zoomed out (I don't remember the word for this; "greeking" is a
term applied to showing fuzzy blobs for text when the characters are
too small to see clearly).

In other words: don't draw all 3 million nodes, just the ones that
would be visible on the screen. If a group of nodes is too small to be
seen in detail, substitute a low-resolution graphic for the group.

-- 
Jim Gibson

[toc] | [prev] | [next] | [standalone]


#20254

Fromnataraja gadikota <nataraja.3.833@gmail.com>
Date2012-12-11 09:15 -0800
Message-ID<0b296d9e-3af0-4308-925d-c36058dc3d90@googlegroups.com>
In reply to#20217
Thanks Jim , 
       that's a new idea 
I'll try to work it out !

On Monday, December 10, 2012 11:19:51 PM UTC+5:30, Jim Gibson wrote:
> In article <7cd27ea6-eea8-4b71-bfe5-9a1898b55c73@googlegroups.com>,
> 
> nataraja gadikota <nataraja.3.833@gmail.com> wrote:
> 
> 
> 
> > Hi , 
> 
> >     I'm looking for a Java based solution for my canvas problem
> 
> > TCL/TK is not able to handle 3million rectangles on a canvas !
> 
> >  
> 
> > https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/Dxh4KyOOojY 
> 
> > 
> 
> > " 
> 
> > Today I had to visualize a huge Data Structure with 146k nodes 
> 
> > and each node is a set of polys/rectangles >20 
> 
> > 
> 
> > I've drawn everything on a Canvas , Appximately 3 million objects were
> 
> > created 
> 
> > All my operations Zoom , Scrolling , Moving Objects on this Canvas have
> 
> > become very SLOW 
> 
> > 
> 
> > I've tested the code with 100 nodes , everything is working fine at that
> 
> > level 
> 
> > When I increase the DS , I'm looking at these issues . 
> 
> > 
> 
> > Any suggestions previous experiences on how to improve the speed ? 
> 
> 
> 
> Sounds like you should consider clipping
> 
> (<http://en.wikipedia.org/wiki/Clipping_(computer_graphics)>) when you
> 
> have zoomed in and showing low-resolution versions of groups of nodes
> 
> (if your data consists of node groups in a tree-like structure) when
> 
> you are zoomed out (I don't remember the word for this; "greeking" is a
> 
> term applied to showing fuzzy blobs for text when the characters are
> 
> too small to see clearly).
> 
> 
> 
> In other words: don't draw all 3 million nodes, just the ones that
> 
> would be visible on the screen. If a group of nodes is too small to be
> 
> seen in detail, substitute a low-resolution graphic for the group.
> 
> 
> 
> -- 
> 
> Jim Gibson

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web