MichaelSinsbeck / platformer

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

Performance and shadows #65

Closed michalove closed 7 years ago

michalove commented 10 years ago

In some levels I get a bad performance, when shadows are activated. This does not seem to correlate with level size. I get problems in these levels: tight the launcher zig zag no pain no gain bowel

I measured the frame rate with the debug mode. These are all levels, where the light part is particularly small. Can this be a reason?

Germanunkol commented 10 years ago

Since the lights are only rendered a single time at startup, and the canvas is usually about the same size, it should not matter how large light- and shadow-areas are. This is weird. Once we've placed level lights like described in #64 then we can look further into this - it should not happen any more.

Germanunkol commented 10 years ago

There won't be any shadows in world 1, right? If so, I'll move this issue away from the current milestone - I can't test shadows in levels that don't have shadows.

michalove commented 10 years ago

Right. I don't remember, why I put this issue into the milestone.

Germanunkol commented 10 years ago

i think I did :) I tried to move everything in here which is not content related... will take this one out.