FPS Drop After Game Pause/Drawing

dreph

  • Posts: 142
Hello again... Gosh I must be getting annoying :P

After I press pause, the game FPS crashes to 3-4 FPS, and when I unpause it does not resolve the issue.  When I press my pause button, it draws 2 rectangles, some text, and a region and pauses game.  When I press escape it's supposed to just unpause and remove the drawing (typical pause menu).

Any ideas?  Most of my issues seem to be performance based and just in case you aren't following my posts, I am making a procedurally generated map 300x90 tiles and each tile has it's own collision bounds.  Not sure if pausing/unpausing would play dirty with tiles for any reason, but just throwing out additional info.

MichaelPel

  • *
  • Posts: 458
Does the framerate suffer if you use the default stencyl-bundled pause screen?

dreph

  • Posts: 142
I am not too sure where the stencyl bundled pause screen is. I havent used kits or anything since i started.  However i could check if i knew where it was.

Either way it doesnt seem like my simple draws would cause this issue but there are quite a few little quirks, bugs, and limitations in this nifty little tool. I just need to figure out another solution.

dtrungle

  • Posts: 1938
Is your pause button linked to anything else?
Do you have code that ignores pause? (actors that are set to ignore, scene behaviors)
When you say 'draw' do you mean only draw? Are there actors involved?
Try not using regions to see if that does anything.

Other then that, the tiles must be affecting it.

MichaelPel

  • *
  • Posts: 458
You should be able to add the bundled pause as a scene behavior. It's somewhere there in the lists

dreph

  • Posts: 142
Is your pause button linked to anything else?
Do you have code that ignores pause? (actors that are set to ignore, scene behaviors)
When you say 'draw' do you mean only draw? Are there actors involved?
Try not using regions to see if that does anything.

Other then that, the tiles must be affecting it.

Gosh I hope the tiles aren't affecting it.  At least to the degree I think they could be.

I realized I have multiple tiles drawn in one spot (that I am going to fix), would overlayed collision boxes cause FPS issues after a pause if they weren't affecting anything before?  Do Tile collisions turn off/on during pause/unpause?

EDIT:  Nope it's not the collisions... damn I hope it's not the tiles...

« Last Edit: July 06, 2015, 07:10:24 am by dreph »