This commit is contained in:
Yury Delendik 2013-12-16 08:46:41 -06:00
Родитель eb86162a5d
Коммит 926090913b
3 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -27,6 +27,7 @@ var renderAsWireframe = rendererOptions.register(new Option("raw", "renderAsWire
var showQuadTree = rendererOptions.register(new Option("qt", "showQuadTree", "boolean", false, "show quad tree"));
var turboMode = rendererOptions.register(new Option("", "turbo", "boolean", false, "turbo mode"));
var forceHidpi = rendererOptions.register(new Option("", "forceHidpi", "boolean", false, "force hidpi"));
var skipFrameDraw = rendererOptions.register(new Option("", "skipFrameDraw", "boolean", true, "skip frame when not on time"));
var enableConstructChildren = rendererOptions.register(new Option("", "constructChildren", "boolean", true, "Construct Children"));
@ -749,6 +750,10 @@ function renderStage(stage, ctx, events) {
var frameFPSAverage = new metrics.Average(120);
function drawFrame(renderFrame, frameRequested) {
if (!skipFrameDraw.value) {
frameRequested = true; // e.g. for testing we need to draw all frames
}
sampleStart();
var refreshStage = false;

Просмотреть файл

@ -17,6 +17,7 @@
*/
turboMode.value = true;
skipFrameDraw.value = false;
function loadMovie(path, reportFrames) {
var movieReadyResolve;

Просмотреть файл

@ -11,7 +11,7 @@ run_test = function (t, file) {
t.mouse_press (initx, inity);
t.advance (100);
t.mouse_move (initx + delta, inity);
t.advance (1600);
t.advance (1400);
t.mouse_release (initx + delta, inity);
t.advance (100);
var diff = t.trace.diff (expected);