About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Huge FPS stuttering
Author Message
AndrewBGS Offline
Member

Post: #1
Huge FPS stuttering
I'm having this weird issue.
I got myself a new computer, pretty good, and I'm testing stuff on one of my maps. I can't pinpoint the cause yet, but sometimes when I move around the image is stuttering badly, I'd swear it's not more than 10 fps.

However, testing with FRAPS shows it's over 300 all the time.
(so sometimes it feels like 300 fps, sometimes like 10. And it's always 300.)

Any idea what could cause this? Actually what this IS? (could fraps not be monitoring frames correctly?)
12-12-2013 03:24 PM
Find all posts by this user Quote this message in a reply
candam Offline
Member

Post: #2
RE: Huge FPS stuttering
Hello Andrew ..
Congratulation for your new computer at first smile

Secondly I don't think anyone will be able to help with such little information about the issue
so you've got to add more clarity and better get information about this issue like a video or debug your code

about fraps not giving you a correct fps number you can check Esenthel Fps using
Time.fps();

I wish I could've helped better but we have no idea about the issue no iformation smile good luck
(This post was last modified: 12-12-2013 03:29 PM by candam.)
12-12-2013 03:29 PM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #3
RE: Huge FPS stuttering
Well... I have no idea what I could tell you.
It must be related to my code somehow, because it happens when the world is empty and it doesn't happen in the tutorials.

I was hoping someone could give me an idea of what could cause this behaviour.
I'll see if I can find out more details about this.
12-12-2013 04:32 PM
Find all posts by this user Quote this message in a reply
candam Offline
Member

Post: #4
RE: Huge FPS stuttering
I really wish I could help but I guess it could be your own code. try to debug your code maybe something is going different
Good luck smile
(This post was last modified: 12-12-2013 04:38 PM by candam.)
12-12-2013 04:36 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #5
RE: Huge FPS stuttering
What is your code doing?

Are you creating objects at runtime? Suddenly drawing something (particles, ..)?
12-12-2013 05:24 PM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #6
RE: Huge FPS stuttering
Yes Tottel, I had some particles dynamically created when the player would do something.
But the stuttering occurs without that even taking place. I just run around on the green field and now and then it feels like going under 10 fps. And then it just goes back to normal. Could it still be the dynamic creation of a particle object even if it's not called?
12-12-2013 07:14 PM
Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #7
RE: Huge FPS stuttering
Try using D.Text(...) with Time.fps() to see if it's the game. It seems odd that Fraps would continue to report 300 fps if it was that low. It could indicate a bigger problem than just code.
12-12-2013 09:01 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #8
RE: Huge FPS stuttering
Does the issue happen when D.sync is on?
Please call this code in each frame:
Code:
LogName(S); LogConsole();
LogN(S+dbl(Time.rd())+"   "+dbl(Time.ad()));
Let me know what are the results.
If there are big differences between rd and ad, then please disable the "LogName(S); LogConsole();" and log will be saved to a file, and please attach it here.
12-13-2013 12:07 AM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #9
RE: Huge FPS stuttering
D.sync(true) took care of it!
I get a steady 60 fps, and it acts like 60 fps also. Really big thanks!
(in case you have time, do you think you can explain to me why this happens? I'm a very curious person. but it's not important)
12-13-2013 08:13 AM
Find all posts by this user Quote this message in a reply
Post Reply