Author: titmuss
Date: Wed Mar 12 14:25:39 2008
New Revision: 2106
URL: http://svn.slimdevices.com?rev=2106&root=Jive&view=rev
Log:
Bug: 6595
Description:
Fix occasional screen flicker.
Modified:
trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua
Modified: trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua
URL:
http://svn.slimdevices.com/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua?rev=2106&root=Jive&r1=2105&r2=2106&view=diff
==============================================================================
--- trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua (original)
+++ trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua Wed Mar 12
14:25:39 2008
@@ -184,6 +184,10 @@
-- frame rate in milliseconds
local framerate = math.floor(1000 / FRAME_RATE)
+ -- time for a vertical refesh. in the future this may need adjusting
+ -- per squeezeplay platform
+ local framerefresh = framerate >> 2
+
-- next frame due
local now = self:getTicks()
local framedue = now + framerate
@@ -232,9 +236,9 @@
framedue = framedue + framerate
now = self:getTicks()
- if now > framedue then
+ if now > framedue - framerefresh then
logTask:debug("Dropped frame. delay=",
now-framedue, "ms")
- framedue = now + (framerate >> 2)
+ framedue = now + framerefresh
end
end
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins