Skip to content

Commit 7e3b408

Browse files
ashwinikalokheMichael Fiess
authored and
Michael Fiess
committed
easter egg for dirty rect (pxscene#1648)
* AntiAliasing for FBO textures on macOS * reverted changes * reverted * dirty rect CPU optimization * Moves screen coordingates calculation for child objects into parent pxobject:update * removed context dependency in dirty rect process * Removed special case context push and pop for dirty rects * Fixed answer.js issue * Reverted recent dirty rect changes and added fix for answer.js * revert * Dirty rect easter egg * WIP * dirty rect changes * dirty rect changes
1 parent 59b0c02 commit 7e3b408

File tree

3 files changed

+185
-174
lines changed

3 files changed

+185
-174
lines changed

examples/pxScene2d/src/Spark.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,11 @@ if (s && (strcmp(s,"1") == 0))
620620
if (RT_OK == rtSettings::instance()->value("screenHeight", screenHeight))
621621
windowHeight = screenHeight.toInt32();
622622

623+
extern bool gDirtyRectsEnabled;
624+
rtValue dirtyRectsSetting;
625+
if (RT_OK == rtSettings::instance()->value("enableDirtyRects", dirtyRectsSetting))
626+
gDirtyRectsEnabled = dirtyRectsSetting.toString().compare("true") == 0;
627+
623628
// OSX likes to pass us some weird parameter on first launch after internet install
624629
rtLogInfo("window width = %d height = %d", windowWidth, windowHeight);
625630
win.init(10, 10, windowWidth, windowHeight, url);

0 commit comments

Comments
 (0)