forked from kanjitalk755/macemu
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid extra memcopy of pixels when blitting
For 32-bit displays Screen_blit is Blit_Copy_Raw, which is just a wrapper around memcopy from the_buffer to browser_pixels. However, since we just take the destination buffer and copy it to the shared array buffer, we can instead do that directly. We can now budget 1ms less in IdleWait for blitting, which reduces idle tab CPU use to ~30%
- Loading branch information
Showing
2 changed files
with
25 additions
and
18 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