Skip to content

background parrallax too heavy #59

@0xDE57

Description

@0xDE57

don't prematurely optimize, but SpaceParallaxSystem currently has massive off screen tile over draw... with 5 layers the cost is massive. too many textures

1280x720 we only need 3-4 x and 2-3 y -> 6 - 12 tiles max. currently there are 35 per layer for a total of 175?! bad!
1920x1080 currently there are 63 per layer for a total of 315?! terrible!
2560x1440 currently there are 91 per layer for a total of 455?! absurd!

4k must be an absolute disaster...

after some profiling: it is the batch flushing that is the issue more than the number of tiles.

Metadata

Metadata

Assignees

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions