Poll

Problem with FPS in my game...

My computer
2 (25%)
The game
1 (12.5%)
StencylWorks gonna get a update soon with a solving on that problem?
5 (62.5%)

Total Members Voted: 8

Games are reeeealy slow...

Tigerslayer96

  • Posts: 9
Hello

Yesterday i got my game veeeery smooth on playing (FPS were ate 50-60), but today then the FPS are around 1-5 and somethimes even at 0. I dont know what i have done wrong here, but it really annoys me that the game is veeeery slow.

I also have another problem with the sound (which is probably the FPS fault...), the sound is veeeery laggy, same as the game is :P

I hope i get a answer as fast as possible.

Thank You!  :)

tabc3dd

  • Posts: 11
When that happens to me, it's usually that my computer is overheating. Check if you can really hear the fans and if everything lags, not only your game :).

Justin

  • *
  • Posts: 4716
Did you make any changes to your game between the time that it was running smoothly and now? I doubt it's your hardware if the game was running at 60 FPS just yesterday.

Try pressing the "~" key on the keyboard (to the left of 1), and see if any errors are coming up. A lot of errors being printed to the debug console at once are a common reason for lag.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

Alexin

  • *
  • Posts: 3127
You don't need to create a poll for every thread (2) you start.
Polls are made to gather statistics, but you're only asking for help.

Anyway, check the console as Justin suggested. If it comes up clean, then try the game with some other PC to narrow the cause down.
"Find the fun"
alexin@stencyl.com

Tigerslayer96

  • Posts: 9
Thanks, i will try your suggestions now. I am also apologizing for many posts...

InFecTioN

  • Posts: 21
Make sure you don't have any infinite loops. Also if you have an actor being created in the (Always Run) spot, then you're going to get some lag.

Rob

  • *
  • Posts: 1268
Based on my past experience using stencyl, you would only get slower fps if you have hundreds and hundreds of actors on screen or off screen (but always simulated).

Infinite loop could be one as infection pointed out. Another one I tend to get trapped is forgetting to define all attributes when I attach a behavior to a scene or an actor. For example, when I use switch scene behavior to switch scene and I forget to define what my next scene is.

Also, this is pretty useful article on stencylpedia:

http://www.stencyl.com/help/viewArticle/52
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Silux

  • Posts: 438
If you have a CPU working at more than 2Ghz the problem is in the game

My pc is 1.1Ghz and lags even with few actors in scene!
(however i use few tricks to fasten cpu...)
Currently working at:
Starwarrior 2097(my main project)
How to make successful games in Kongregate and the world(article)

Tigerslayer96

  • Posts: 9
My pc is at 1.30 Ghz. I have Intel Core 2 Duo.

I found out that the game had very slow FPS, because i had too much on the same scene... I also had music added on the game. The music made the game to go veeeery slow, but decided to try to get rid off the sound in the background. After doing that the game has improved from 5-10 FPS to 10-25 FPS. It mostly goes to around 20 FPS now, but when i change from one to another screen it runs slow but not for long...

Thanks for the help, i really appreciated that. Thanks :)

Silux

  • Posts: 438
Also printing the frame per second slow the frame per second

An action/RTS game doesn't feel lagging if is around 20-25 frame per second.

A fast shooter should be 30 fps or higher to be enjoyable.

Point and click games can have a nice 15 frame per second and nobody will complain...

(to fasten cpu i usually shut down unusefull processes from Task Manager,like plugin-container when i'm not using flash)
Currently working at:
Starwarrior 2097(my main project)
How to make successful games in Kongregate and the world(article)

Tigerslayer96

  • Posts: 9
Yeah, i am creating a Fast Shooter game (Space Shooter), and the FPS is at the beginning on 50-60, but later it becomes at 20-30 and somethimes between 30-40... It's variable, but it is still playable. The only place it is lagging is on the screen changing, when the actor change scene from the bottom to the top (sorry for bad explaining, I'm from Norway).

I also remember when u said about the Task Manager... Gonna check that too and delete everything I'm not using that the time (which are useless on running.)

Thanks for so much help from you people, i really appreciated that. I am really surprised and happy for fast replies too with good information.

Thank You :)

Rob

  • *
  • Posts: 1268
Also, if you are playing in a browser, I heard Chrome tends to be a lot faster than Firefox. I saw this post a while back.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Alexin

  • *
  • Posts: 3127
For me, Stencyl games are considerably faster in Chrome (W7).
"Find the fun"
alexin@stencyl.com

Epic428

  • Posts: 1118
I too have noticed a boost in performance with the use of Chrome. Unfortunately, chrome likes to freeze pages on me. Guess you can't win em all :p
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Tigerslayer96

  • Posts: 9
I use Opera... But have lately used Chrome, since i have heard that Google Chrome is the best net server based on speed. Speed means alot for me :)