forked from hex007/freej2me
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PlatformImage: Use MUCH faster transforms.
This commit is centered entirely on fixing Sonic 2 Crash's terrible performance. It makes very heavy use of pretty much all of the available transforms to construct everything from the backgrounds, to stage tiles, to the general sprites. Previously the amount of calls to AffineTransform would slow this down considerably, often making it drop to 1-2 FPS ingame. This is no longer the case, as using direct byte manipulation on these transforms allows the game to maintain its (still choppy) 12-ish FPS with a lot of CPU time to spare.
- Loading branch information
1 parent
4b60cdf
commit d61205d
Showing
1 changed file
with
183 additions
and
53 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