SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Help

Reply
 
Thread Tools Search this Thread
Old 05-25-2016   #1
Zero_the_artificial
A Weavile Enthusiast
 
Zero_the_artificial's Avatar
Default SRB2 2.1.15 killed my FPS.

Well, basically what happened is that playing either in srb2win.exe or srb2dd.exe have really, really low FPS. I don't know exactly why, playing in any other versions of the game have 35 FPS locked, but playing on 2.1.15 gives me terrible FPS, around 10-20 FPS, and in Special Stages, I get LESS than 10 fps, making them pretty much unplayable.

I've noticed that changing the resolution does help, but I've always played in 1280x720 with NO problems at all. Is there any way to fix this? It's really putting me off from playing the game.
__________________
Weavile slayed Dragons before it was cool. ᕙ(⌐■ᨎ■)ᕗ
http://steamcommunity.com/groups/TemmieIsGod
Zero_the_artificial is offline   Reply With Quote
Old 05-25-2016   #2
MK.exe
The one and only!
 
MK.exe's Avatar
Default

Had this problem.

Can be fixed by lowering to the option below it.

You wont get the same size but it'll run smoothly
__________________
Done:
Hit a 180 Rail shot
1st person to have a map in releases with Slopes
MK.exe is offline   Reply With Quote
Old 05-25-2016   #3
Boinciel
ヒトデパンと奇妙なジャム
Developer
 
Boinciel's Avatar
Default

Check cpusleep in the console. If it's anything other than -1 or 0, try lowering it.
__________________
I'm deleting WOW + FURYHUNTER your not int his BLAPCK robo ass memes because that was a bad pun MonsterIestyn

hubjim
Boinciel is offline   Reply With Quote
Old 05-26-2016   #4
FuriousFox
AKA FuriousFox
Developer
 
FuriousFox's Avatar
Default

Try turning off "Clear Before Redraw" in video options. I'm seeing similar issues in 2.1.15 that I Wasn't seeing in 2.1.14.
FuriousFox is offline   Reply With Quote
Old 05-26-2016   #5
MK.exe
The one and only!
 
MK.exe's Avatar
Default

Quote:
Originally Posted by Boinciel View Post
Check cpusleep in the console. If it's anything other than -1 or 0, try lowering it.
Quote:
Originally Posted by FuriousFox View Post
Try turning off "Clear Before Redraw" in video options. I'm seeing similar issues in 2.1.15 that I Wasn't seeing in 2.1.14.
Both of these work nicely for me, Thanks!
__________________
Done:
Hit a 180 Rail shot
1st person to have a map in releases with Slopes
MK.exe is offline   Reply With Quote
Old 05-26-2016   #6
Zero_the_artificial
A Weavile Enthusiast
 
Zero_the_artificial's Avatar
Default

Both of these didn't work AT ALL for me, though. Is there any other way to fix this?
__________________
Weavile slayed Dragons before it was cool. ᕙ(⌐■ᨎ■)ᕗ
http://steamcommunity.com/groups/TemmieIsGod
Zero_the_artificial is offline   Reply With Quote
Old 05-26-2016   #7
K.S.
Formerly Inuyasha
Retired Staff
 
K.S.'s Avatar
Default

Quote:
Originally Posted by FuriousFox View Post
Try turning off "Clear Before Redraw" in video options. I'm seeing similar issues in 2.1.15 that I Wasn't seeing in 2.1.14.
I highly doubt this was ever the problem.

If a single memcpy is slowing your game down, then you have much worse problems than the fragment of code that simply clears the screen.
K.S. is offline   Reply With Quote
Old 05-26-2016   #8
MK.exe
The one and only!
 
MK.exe's Avatar
Default

Quote:
Originally Posted by Zero_the_artificial View Post
Both of these didn't work AT ALL for me, though. Is there any other way to fix this?
I'd like to add that what the devs suggested work with sofware but i didnt test opengl
__________________
Done:
Hit a 180 Rail shot
1st person to have a map in releases with Slopes
MK.exe is offline   Reply With Quote
Old 05-26-2016   #9
FuriousFox
AKA FuriousFox
Developer
 
FuriousFox's Avatar
Default

Quote:
Originally Posted by 犬夜叉 View Post
I highly doubt this was ever the problem.

If a single memcpy is slowing your game down, then you have much worse problems than the fragment of code that simply clears the screen.
FuriousFox is offline   Reply With Quote
Old 05-26-2016   #10
K.S.
Formerly Inuyasha
Retired Staff
 
K.S.'s Avatar
Default

Quote:
[16:25:41] <+Alam_Squeeze> ahhh, no optimised was done in the release build
[16:25:43] <+Alam_Squeeze> WHY?
... well, that explains why memcpy is slower specifically for the release build. With optimizations on memcpy takes almost no time to complete, and every build I've compiled with it has had them on. But somehow the wrong flag was set for the 2.1.15 release, and compiler optimization was disabled instead.

A lot of stuff in the game abuses the fact that memcpy is faster (like, to the point of being near instantaneous) than writing byte by byte. It turns out homremoval is the most immediately noticable and easiest to disable, so it turns into the scapegoat.

Last edited by K.S.; 05-26-2016 at 11:33 PM.
K.S. is offline   Reply With Quote
Old 05-26-2016   #11
Zero_the_artificial
A Weavile Enthusiast
 
Zero_the_artificial's Avatar
Default

Quote:
Originally Posted by MK.exe View Post
I'd like to add that what the devs suggested work with sofware but i didnt test opengl
I um, ARE using Software mode.
I'm not using OpenGL.

And I've tried doing what FuriousFox did, but there's absolutely NO difference in FPS. In fact, it gets even WORSE by changing it.
__________________
Weavile slayed Dragons before it was cool. ᕙ(⌐■ᨎ■)ᕗ
http://steamcommunity.com/groups/TemmieIsGod
Zero_the_artificial is offline   Reply With Quote
Old 05-27-2016   #12
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

Quote:
Originally Posted by 犬夜叉 View Post
It turns out homremoval is the most immediately noticable and easiest to disable, so it turns into the scapegoat.
2.0.5 all over again? =V Or was that a different issue, it's been so long now, lol.
__________________
My page stuffed full of MIDI goodness!
The Hitchhiker's Guide to the Robo-Hoodiverse
Timeline of Sonic Robo Blast History!

That's an uppercase i, not a lowercase L, for the record. Also, it's pronounced "Yes-tin".
Monster Iestyn is offline   Reply With Quote
Old 05-27-2016   #13
EternallyAries
That Aries Title
 
EternallyAries's Avatar
Default

Quote:
Originally Posted by Zero_the_artificial View Post
Well, basically what happened is that playing either in srb2win.exe or srb2dd.exe have really, really low FPS. I don't know exactly why, playing in any other versions of the game have 35 FPS locked, but playing on 2.1.15 gives me terrible FPS, around 10-20 FPS, and in Special Stages, I get LESS than 10 fps, making them pretty much unplayable.

I've noticed that changing the resolution does help, but I've always played in 1280x720 with NO problems at all. Is there any way to fix this? It's really putting me off from playing the game.
It comes to my attention that it seems every time a new version of Sonic Robo Blast 2 comes out. It seems to raise the required specs to play this. What is your current computer specs zero? It might be helpful to know if it's your computer or not. Also, from what I've seen you need to mess with the video settings for a bit and see if something could be tweak to your liking while keeping the FPS 35/35 stable. Also a recommended resolution if you can handle it that is, is 640x400 while playing in window mode. I use this resolution back when I was stuck with a integrated GPU card.

Also from my testing, Your FPS might not drop if you set your Draw Distance to infinite and Nights Draw Distance to infinite. Precip draw distant should be lowered down to 256 since it helps keep the FPS stable entirely also put the precip density to light as well which is a very good idea for those rainy stages. Clear Before Redraw seems to be an iffy thing for some users. Some users will notice performance increase while others will have lower FPS due to it even being on. I recommend you turn off Clear Before Redraw to see if this helps you out. Also turn off Vertical Sync as well.

Also if software is having low FPS, try out OpenGL, it might help raise your FPS.
__________________
There is nothing much to read here.
EternallyAries is offline   Reply With Quote
Old 05-27-2016   #14
Wolfy
wolfs
Developer
 
Wolfy's Avatar
Default

Temporary fix, but this should help: http://lightdash.org/SRB2/misc/srb2git.exe

This is just a build compiled off the master branch with optimizations. It's netgame compatible with 2.1.15 as well, so don't worry about using it online.
__________________
Quote:
[23:56:36] <SM-MaxX> prisma illya is a gift to this impure earth and a shining beacon for all anime

Last edited by Wolfy; 09-02-2016 at 01:32 AM.
Wolfy is offline   Reply With Quote
Old 05-27-2016   #15
CalebM
Look at this placed Comment
Permanently Banned
Default Reply by CalebM

Quote:
Originally Posted by Zero_the_artificial View Post
Well, basically what happened is that playing either in srb2win.exe or srb2dd.exe have really, really low FPS. I don't know exactly why, playing in any other versions of the game have 35 FPS locked, but playing on 2.1.15 gives me terrible FPS, around 10-20 FPS, and in Special Stages, I get LESS than 10 fps, making them pretty much unplayable.

I've noticed that changing the resolution does help, but I've always played in 1280x720 with NO problems at all. Is there any way to fix this? It's really putting me off from playing the game.
I feel sorry about you, "Temmie."*
----------------------------------------------------------------------------------------
*Don't ask me about Undertale.
CalebM is offline   Reply With Quote
Old 05-27-2016   #16
Fres
oof
 
Fres's Avatar
Default

Quote:
Originally Posted by EternallyAries View Post
Also from my testing, Your FPS might not drop if you set your Draw Distance to infinite and Nights Draw Distance to infinite. Precip draw distant should be lowered down to 256 since it helps keep the FPS stable entirely also put the precip density to light as well which is a very good idea for those rainy stages. Clear Before Redraw seems to be an iffy thing for some users. Some users will notice performance increase while others will have lower FPS due to it even being on. I recommend you turn off Clear Before Redraw to see if this helps you out. Also turn off Vertical Sync as well.
I'm going to have to disagree with you on that.

I tested that before, and it turns out raising the draw distance makes the framerate worse. This is probably because raising the DD allows you to render more sprites on screen, and in some maps, that can cause a lot of lag. It's even worse in Nights.

I'd recommend setting the Draw Distance to 2048 and the Nights Draw Distance to 748.
__________________
Quote:
Originally Posted by GreenKnight9000 View Post
HOLY MCCHICKEN FLAVOURED TITTY SPRINKLES

Last edited by Fres; 05-28-2016 at 03:11 AM. Reason: Figured out the DD numbers
Fres is offline   Reply With Quote
Old 05-27-2016   #17
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

How about you guys actually check out the exe Wolfy provided instead of messing with everything from A to Z? =V
__________________
My page stuffed full of MIDI goodness!
The Hitchhiker's Guide to the Robo-Hoodiverse
Timeline of Sonic Robo Blast History!

That's an uppercase i, not a lowercase L, for the record. Also, it's pronounced "Yes-tin".
Monster Iestyn is offline   Reply With Quote
Old 05-27-2016   #18
Zero_the_artificial
A Weavile Enthusiast
 
Zero_the_artificial's Avatar
Default

Quote:
Originally Posted by Wolfy View Post
Temporary fix, but this should help: https://dl.dropbox.com/s/gk99a3yuyu3...b2win.exe?dl=0

This is just a build compiled off the master branch with optimizations. It's netgame compatible with 2.1.15 as well, so don't worry about using it online.
Tried it out, and it does work a bit. I still get sudden FPS drops, but they're not SO annoying.
Tried out the Special Stages and they're now playable. Thank you Wolfy.
__________________
Weavile slayed Dragons before it was cool. ᕙ(⌐■ᨎ■)ᕗ
http://steamcommunity.com/groups/TemmieIsGod
Zero_the_artificial is offline   Reply With Quote
Old 05-28-2016   #19
toaster
トースタちゃん
Developer
 
toaster's Avatar
Default

Tested on multiple development team members' hardware (including mine just now with the laggiest map I've played in default 2.1.15 so far - Thokker 1.1.0's Petroleum Refinery). SRB2's performance is back up to full 35's in general. If you got those lag spikes in 2.1.14, then I guess we can say this is completely resolved.

If you DIDN'T have those lag spikes in .14, though, then please provide more detailed information to help us figure out what might be causing them.
__________________
Quote:
<fickle> giant robo-hood that rips the map apart with her bare hands
toaster is offline   Reply With Quote
Old 05-28-2016   #20
Zero_the_artificial
A Weavile Enthusiast
 
Zero_the_artificial's Avatar
Default

Well... I don't really have tons of information on the FPS drops. They pretty much happens when I'm looking at specific parts of any map.
I just took some pics from the specific parts I'm talking about.
Spoiler: Pics

The most notable section with the worse FPS is clearly THZ act 2.




These four parts of the map have these sudden drops of FPS.

I also still have sudden FPS drops during Special Stages, but they're pretty much managable.
I also have Clear Before Redraw off and VSync on.
__________________
Weavile slayed Dragons before it was cool. ᕙ(⌐■ᨎ■)ᕗ
http://steamcommunity.com/groups/TemmieIsGod

Last edited by Zero_the_artificial; 05-28-2016 at 06:15 PM. Reason: EDIT: Fixed links
Zero_the_artificial is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:34 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.