What I noticed is that if the cache size is less than a certain size, the frame rate drops, so I did:
var cache_offset = 10 * Camera.zoom; => var cache_offset = 10 * Camera.zoom + 77;
And I played with this 77 a bit, my initial thought was that the caching area should be 2, but in zoom:3 , adding 77 turns out the caching size is 364x364px and any size higher, which works fine for zoom:3 , so I donβt know why, but the size of the cache rectangle somehow reduces the frame rate .
And there is one typo (actually does not affect this problem):
mainStage.snameToPixelsEnabled = true; => mainStage.snapToPixelEnabled = true;
This led to an increase in frame rate of about 2-3 frames per second
olsn
source share