Tips for framerate ? [Fixed]

airman4

  • Posts: 875
Timers ?
I make those code to record the whole time you play

It's when updating
increment nb att by step size/1000
set game att to game att+ step size /1000

I have also another timer code for the level , to record the time you played


SadiQ

  • Posts: 1795
I meant Do every/Do after timers. Use them incorrectly (maybe in an updated event) and the game will lag.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

airman4

  • Posts: 875
i'll try to reduce the do every  and do after timers
It will hard  to find alternatives

airman4

  • Posts: 875
Game file is here
https://www.dropbox.com/s/rw0pyhebaejdasi/matestt.rar?dl=0
Demo scene 1 is the one to analyse

if anyone can help me see my errors

i'll put it down afterwards

Game is rather simple with one stage but the gameplay is infinite and huge , you'll have many things to do over the time
I replaced some do every timers with a system of messaging wich repeats over the time
I also removed some stuff from When updating in event scene
The game have an automatic Reload scene , when you die , you go back directly in the game , if you want to stop , ESC to press , after ENTER.
The spawn of the yellow cubes is evoluting through time , the BOSS IA and attacks too
Speed also increase over the time
To control speed i used a huge layer , the layer 18 to do it.

So maybe it's too much coding wise ?
Maybe the size screen 1000 pix is too much
Maybe i put too much behaviors at the same place ?
Or maybe  something else

The behaviors  to look into are
everey spawn totem
tempstotal
and events of the scene of course

« Last Edit: January 05, 2017, 08:28:35 am by airman4 »

SadiQ

  • Posts: 1795
You're not supposed to remove them or replace them(unless you have an unreasonable amount). You just need to make sure you don't use them improperly.
 Don't use them inside the Always event without making sure they only start once(or better yet, don't use them inside the Always event at all), don't use Do after inside a Do every loop/event, don't let them run forever if they don't need to, make sure they don't start if they don't have to.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

airman4

  • Posts: 875
Ok i'm checking that right now
thanks a lot

SadiQ

  • Posts: 1795
Why didn't you use Export game ?
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

airman4

  • Posts: 875
Sorry , uploading that right now

airman4

  • Posts: 875
Ok i have a behavior that is the Day and night cycle
It's Do every bracket and have 4 do after inside it
i'll remove it already

edit
removed
Replaced with something else
Now checking the actors behaviors and will check all every timers and so on

« Last Edit: January 05, 2017, 07:57:13 am by airman4 »


SadiQ

  • Posts: 1795
I get a nice 90% memory warning upon opening the game and I have a ton of extensions missing in case anyone wants to test this: SteamWrap, gameJolt, raycastAPI and TimeConversions.

Gonna waste some time before I can even open this :(
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.


airman4

  • Posts: 875
Paste this into the stencyl programm file on windows  and open with it  )



SadiQ

  • Posts: 1795
For some strange reason Steamwrap doesn't get enabled when I start the game. I installed it, and yet stencyl still doesn't see it: Missing engine extension - The engine extension 'Steamwrap' does not exist. Do not save the game, if you have used blocks from the extension.

Maybe you have a modified version?
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

airman4

  • Posts: 875
I dont use steamwrap , no need to enable it
I only use Time conversions

I have the other extension but i dont use them ingame except for time conversions