Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20217
| From | Jim Gibson <jimsgibson@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JAVAFX Rendering |
| Date | 2012-12-10 09:49 -0800 |
| Message-ID | <101220120949515759%jimsgibson@gmail.com> (permalink) |
| References | <7cd27ea6-eea8-4b71-bfe5-9a1898b55c73@googlegroups.com> |
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
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web