New topic: 

High CPU usage with Canvas and Rb3DSpace

<http://forums.realsoftware.com/viewtopic.php?t=41050>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        jm5464          Post subject: High CPU usage with Canvas and 
Rb3DSpacePosted: Tue Oct 18, 2011 3:32 pm                         
Joined: Sun Dec 26, 2010 7:29 pm
Posts: 42                So I have a project that reads data from a device and 
translates it into values that can rotate a 3D object. I have a timer that 
reads the data, translates it into meaningful values and then notifies a couple 
of observers with the new data. One observer is a Canvas that displays the 
values using StringShapes, the other is a Rb3DSpace (I know, it's not supported 
anymore but the only option for now). The program starts off just displaying 
the Canvas data and CPU usage is almost nothing, but when one opens the 3D 
object window that parses the data, CPU usage goes nuts. This would makes sense 
since it's a 3D object except if I only display 3D object rotation CPU usage 
drops to barely any.

Now, I put buttons on each window to toggle data observation and played around 
with on/off combinations and orders. If I enable either one but not both, CPU 
usage is minimal. If I enable the Canvas data and then the 3D object data, CPU 
is maxed. If I then turn Canvas data off and then back on while the 3D object 
is still on, CPU usage goes back to minimal.

Here's a demo project that replicates the issue if anyone would like to tackle 
it: http://www.mediafire.com/?qqta5v17im1j06j

If you have a decent computer you may need to fullscreen the 3D window to see 
the CPU take off. I'm using RB2011R3 on Windows FWIW.   
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to