MichaelSinsbeck / platformer

A ninja platformer written in LÖVE
7 stars 0 forks source link

Levels - optimize background rendering #168

Closed Germanunkol closed 7 years ago

Germanunkol commented 10 years ago

Two things should be done, which aren't working yet:

At the moment, these aren't important yet - for small levels there's no noticable speed drop (at least not for me). So this is important, but can be finished later. Agreed? Or is the game already slow on your end?

michalove commented 10 years ago

I have no performance issues yet. The first of the two points is much more important, I would say. Maybe it is enough to add a flag-argument to the level-load function and then generate one single sprite batch, if in game-mode? Hey, flag-arguments.

Germanunkol commented 10 years ago

I'd just let the level load function poll the (global) mode the game is currently running in. That way we don't need an extra flag, the level load function should have access to that mode. So yes, this should be fairly straight forward...

Germanunkol commented 10 years ago

Huh, I just noticed that point one is already implemented. I must be growing old...

michalove commented 10 years ago

Yeah, the age...