[Laszlo-dev] For Review: Change 20090305-maxcarlson-9 Summary: UPDATED: Make framerate dynamically adjustable

Max Carlson max at openlaszlo.org
Thu Mar 5 18:36:24 PST 2009


Change 20090305-maxcarlson-9 by maxcarlson at Bank.lan on 2009-03-05  
06:55:14 PST
     in /Users/maxcarlson/openlaszlo/trunk-clean
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: UPDATED: Make framerate dynamically adjustable

Bugs Fixed: LPP-7866 - Make framerate adjustable via canvas.framerate

Technical Reviewer: ptw
QA Reviewer: promanik

Details: swf9/LzIdleKernel - Replace startTimer() method with  
setFrameRate() implementation.

LFCApplication - Register LzIdleKernel.__update() for frame events  
directly.

kernel/LzIdleKernel - Add implementation of setFrameRate().

LaszloCanvas - Set framerate to a default of 30, add setter and  
event.  Fix setter to ensure framerate is between 1 and 1000 FPS.

CanvasCompiler - Read framerate from canvas attribute.

SWFWriter - Read and set framerate of the compiled swf from the canvas  
model.

Canvas.java - Add framerate property, getter and setter.

Tests: See LPP-7866.  In swf8, the physical frame rate will be set  
based on the canvas value.  Updated testcase on LPP-7866 works  
consistently across runtimes.

Files:
M      WEB-INF/lps/lfc/kernel/swf9/LzIdleKernel.as
M      WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
M      WEB-INF/lps/lfc/kernel/LzIdleKernel.lzs
M      WEB-INF/lps/lfc/services/LzIdle.lzs
M      WEB-INF/lps/lfc/views/LaszloCanvas.lzs
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/ 
CanvasCompiler.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/SWFWriter.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/Canvas.java

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090305-maxcarlson-9.tar


More information about the Laszlo-dev mailing list