Skip to main content

CPU usage

3 replies [Last post]
Clifford Lyon
Offline
Joined: 2006-02-17

I notice that even when the SimpleUniverse I'm using doesn't have focus, it still uses a lot of CPU. If I minimize the frame though, it uses almost no CPU. Is there a way to "freeze" a scene when the window loses focus, to free memory for other applications, or windows w/in the same application?

I have +1 viewport for the same data, and the user can bounce around window to window. But the j3d window slows everything else down unless it's minimized.

Thanks for any suggestions,

Cliff

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Alessandro Borges

You can limit the frame rate, reducing CPU usage.

something like:

// 1000ms /60FPS ~ 17ms per cycle
simpleUniverse.getViewer().getView().setMinimumFrameCycleTime(17);

Alessandro

--- java3d-interest@javadesktop.org escreveu:
> I notice that even when the SimpleUniverse I'm using doesn't have focus, it
> still uses a lot of CPU. If I minimize the frame though, it uses almost no
> CPU. Is there a way to "freeze" a scene when the window loses focus, to free
> memory for other applications, or windows w/in the same application?
>
> I have +1 viewport for the same data, and the user can bounce around window
> to window. But the j3d window slows everything else down unless it's
> minimized.
>
> Thanks for any suggestions,
>
> Cliff
> ---
> [Message sent by forum member 'Clifford Lyon' (clifford.lyon)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=40721鼑
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Clifford Lyon

Thanks for the tip - I'll give that a try.

Alessandro Borges wrote:
> You can limit the frame rate, reducing CPU usage.
>
> something like:
>
> // 1000ms /60FPS ~ 17ms per cycle
> simpleUniverse.getViewer().getView().setMinimumFrameCycleTime(17);
>
>
> Alessandro
>
> --- java3d-interest@javadesktop.org escreveu:
>
>>I notice that even when the SimpleUniverse I'm using doesn't have focus, it
>>still uses a lot of CPU. If I minimize the frame though, it uses almost no
>>CPU. Is there a way to "freeze" a scene when the window loses focus, to free
>>memory for other applications, or windows w/in the same application?
>>
>>I have +1 viewport for the same data, and the user can bounce around window
>>to window. But the j3d window slows everything else down unless it's
>>minimized.
>>
>>Thanks for any suggestions,
>>
>>Cliff
>>---
>>[Message sent by forum member 'Clifford Lyon' (clifford.lyon)]
>>
>>http://www.javadesktop.org/forums/thread.jspa?messageID=40721鼑
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
>>For additional commands, e-mail: interest-help@java3d.dev.java.net
>>
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Clifford Lyon

This was an excellent tip! Noticable improvement.

Clifford Lyon wrote:
> Thanks for the tip - I'll give that a try.
>
> Alessandro Borges wrote:
>
>> You can limit the frame rate, reducing CPU usage.
>>
>> something like:
>>
>> // 1000ms /60FPS ~ 17ms per cycle
>> simpleUniverse.getViewer().getView().setMinimumFrameCycleTime(17);
>>
>>
>> Alessandro
>>
>> --- java3d-interest@javadesktop.org escreveu:
>>
>>> I notice that even when the SimpleUniverse I'm using doesn't have
>>> focus, it
>>> still uses a lot of CPU. If I minimize the frame though, it uses
>>> almost no
>>> CPU. Is there a way to "freeze" a scene when the window loses focus,
>>> to free
>>> memory for other applications, or windows w/in the same application?
>>>
>>> I have +1 viewport for the same data, and the user can bounce around
>>> window
>>> to window. But the j3d window slows everything else down unless it's
>>> minimized.
>>>
>>> Thanks for any suggestions,
>>>
>>> Cliff
>>> ---
>>> [Message sent by forum member 'Clifford Lyon' (clifford.lyon)]
>>>
>>> http://www.javadesktop.org/forums/thread.jspa?messageID=40721鼑
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
>>> For additional commands, e-mail: interest-help@java3d.dev.java.net
>>>
>>>
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam? Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
>> For additional commands, e-mail: interest-help@java3d.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net