0XDE57 / SpaceProject

An arcadey physics based top-down 2D, procedurally generated asteroid miner sandbox game using libGDX.
Apache License 2.0
38 stars 10 forks source link

background parrallax too heavy #59

Open 0XDE57 opened 3 hours ago

0XDE57 commented 3 hours ago

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...

0XDE57 commented 3 hours ago

might be better off replacing with a shader but not sure how to achieve similar effect in a shader...