blackball / nvidia-widgets

Automatically exported from code.google.com/p/nvidia-widgets
0 stars 0 forks source link

IMGUI requires constant redraw #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
run the example

What is the expected output? What do you see instead?
it redraws all the time. This drains laptop battery life.

What version of the product are you using? On what operating system?
osx. Latest svn version.

Please provide any additional information below.
Maybe one could implement a version that is only redrawing when the mouse 
button is pressed. Of 
course hovering effects are not possible with this, or one would have to work 
with a timer.

Original issue reported on code.google.com by den.kov...@gmail.com on 21 Aug 2008 at 7:16

GoogleCodeExporter commented 9 years ago
A simple workaround is not to refresh the screen constantly, but limit
it to 60 or 30 Hz. That can be achieved with WaitableTimers. See the
comment section of the following article:

http://cbloomrants.blogspot.com/2009/03/03-02-09-sleep-sucks-and-vsync-woes.html

Original comment by cast...@gmail.com on 23 Apr 2009 at 3:38