forked from hex007/freej2me
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display: Graphics: Clean up screen render, and improve frame sync
Right out of the gate, massive optimization to Motorola's FunLights implementation, while the LCD color mask is also slightly faster by being integrated directly into the main render pass. Other than that, Display's callSerially() method for render synchronization has been overhauled to use a thread to process screen repaints instead of relying on a fixed timer interval, improving efficiency and performance by locking better to the game's intended framerate. Furthermore, Canvas now does the entire rendering pass before setting the "isPainting" flag to false, fixing flickering and, as of now, rendering serviceRepaints() kind of useless since repaint() will already run callSerially() if the jar requests a repaint while another is under way. Helps #58 and #59 (Boombakas Pro is fully playable and doesn't flicker anymore, same for the games presented by issue 58).
- Loading branch information
1 parent
913e2d5
commit dd54747
Showing
3 changed files
with
90 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters