Project: Paper2D

Hello Guys! Please help to solve CPU stall problem) I’ve created level from pieces like :

and that’s what i’ve got:


So I put my character and just tried level out and noticed that it has some lags, like fps is low. I’ve used Profiler and noticed some CPU stall problems.

So what i’m thinking about:

  • CPU stall means it’s waiting for something (GPU) to continue working? If so would it be better to use 3-4 bigger sprites prepared in other program, than building level from pieces in editor? If I understand it right 3-4 big sprites = 3-4 draw calls, 50-60 smaller sprtites = 50-60 draw calls, which is no good? )
    I’ve got i7-4770 and GeForce GTX 770 - which are not so bad.
  • It says "CPU stall - Wait for event 16 " (or another number 8, 12) so how I can get information about what number means, what kind of event it’s waiting.
  • Probably there is another reason of problem.
    Need any advice) Thank you a lot!