Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jim Gibson Newsgroups: comp.lang.java.programmer Subject: Re: JAVAFX Rendering Date: Mon, 10 Dec 2012 09:49:51 -0800 Lines: 38 Message-ID: <101220120949515759%jimsgibson@gmail.com> References: <7cd27ea6-eea8-4b71-bfe5-9a1898b55c73@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net sLunm2YNvaYoZoExozyplAywvoxoyGmVtge2bYx74tx0hot7UGTUSJPFDwIl/uF3ce X-Orig-Path: jimsgibson Cancel-Lock: sha1:exFm83vuPtrTQJvfvTnuWcYyzk8= User-Agent: Thoth/1.9.0 (Mac OS X) Xref: csiph.com comp.lang.java.programmer:20217 In article <7cd27ea6-eea8-4b71-bfe5-9a1898b55c73@googlegroups.com>, nataraja gadikota 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 () 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