VSync causing stuttering effect

VSync causing stuttering effect

Postby Static Juice » 13 Dec 2013, 02:38

Hi,

I've noticed when playing STK 0.8.1, I get a strange stuttering effect on certain tracks when VSync is enabled. It's as if the camera is constantly jumping back a few frames. The only official track this happens on is the Old Mine, but it does seem to happen on quite a few addon tracks as well. The laggy stuttering effect doesn't seem to affect the FPS rate though. All tracks still run at a constant 60ps regardless of whether it gets the effect or not. I'm running a Windows 7 PC with an AMD Radeon HD 6670 graphics card. I also have the latest drivers installed for it too. So yeah, I hope I've explained it well enough. It's just a huge pain for me as it makes some tracks barely playable.
User avatar
Static Juice
 
Posts: 26
Joined: 19 Jan 2010, 04:24
Location: New Zealand

Re: VSync causing stuttering effect

Postby Funto » 13 Dec 2013, 09:54

Do you experience something like this?
Image

If not I don't exactly understand what's happening there, and I'm not sure taking a video would show the problem.
Funto
 
Posts: 459
Joined: 09 Dec 2009, 13:47
Location: Bordeaux, France

Re: VSync causing stuttering effect

Postby Static Juice » 13 Dec 2013, 12:13

Ah no, tearing is a different issue that happens when VSync is off. My problem only happens when VSync is on. I'm sorry that it's hard to explain. It sort of looks like the frame rate is horrendously low, but it's more the camera jumping back constantly.
User avatar
Static Juice
 
Posts: 26
Joined: 19 Jan 2010, 04:24
Location: New Zealand

Re: VSync causing stuttering effect

Postby Toams » 13 Dec 2013, 16:54

I used to have the same problem, howevere i'm unable to reproduce it right now. I was thinking it were framedrops, because i had around 30FPS wich is pretty low. but since you say you have 60FPS it may be something else. for me it even happend on the overworld map. however right now i'm running latest development with all effects enabled and it doesn't happen anymore. still around 30FPS
Toams
 
Posts: 13
Joined: 07 Sep 2011, 22:00

Re: VSync causing stuttering effect

Postby Auria » 13 Dec 2013, 23:32

Hi,

this is a known problem, the current camera code uses flawed math. It's on the todo list, we will eventually rewrite the camera code
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: VSync causing stuttering effect

Postby Funto » 14 Dec 2013, 00:28

I wouldn't say 30FPS is low...most games have this as a target...
Funto
 
Posts: 459
Joined: 09 Dec 2009, 13:47
Location: Bordeaux, France

Re: VSync causing stuttering effect

Postby Calinou » 14 Dec 2013, 15:12

Funto {l Wrote}:I wouldn't say 30FPS is low...most games have this as a target...


30 FPS is certainly not a good target for a game like STK. We have 60 Hz (or more) screens, let's use them to their full potential...
User avatar
Calinou
 
Posts: 171
Joined: 22 Jan 2010, 21:43
Location: France

Re: VSync causing stuttering effect

Postby Auria » 14 Dec 2013, 16:13

Calinou {l Wrote}:
Funto {l Wrote}:I wouldn't say 30FPS is low...most games have this as a target...


30 FPS is certainly not a good target for a game like STK. We have 60 Hz (or more) screens, let's use them to their full potential...



For "a game like STK", it is just not possible to have a target, since computers it runs on vary a lot, and depending on what you enable or not in options it can also vary a lot. So you can make it your target, and ensure that your combination of hardware and settings run at that speed ;)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: VSync causing stuttering effect

Postby NeonKnightOA » 14 Dec 2013, 23:08

Is it possible a FPS cap such as 30 or 60?
Image

"Practice good sportsmanship. You were a n00b once, too." - UT3 advice
"The ratio of critics to creators is something like 10,000:1. The ratio of good critics to bad: 1:10,000." - Fast Eddie
"The ones who speak loudest, are usually the least productive" - Skillz, UTFiles admin
"I don't know the key to success, but the key to failure is trying to please everybody" - Bill Cosby
User avatar
NeonKnightOA
 
Posts: 34
Joined: 01 Dec 2013, 15:10
Location: Junín (Buenos Aires - Argentina)

Re: VSync causing stuttering effect

Postby Arthur » 15 Dec 2013, 00:42

VSync is basically an FPS cap. It caps FPS at your monitor screen refresh rate. Also, the game has an FPS cap of 120 otherwise, which can be changed in the config file (but really there's nothing to earn over using VSync unless you want to set it very low and thus slow down the whole game... slo-mo effect due to the game's internal clock being dependent upon FPS).
Hey pal, I took an oath for justice! "In happy days or tightest tights..." or something like that.
User avatar
Arthur
 
Posts: 1073
Joined: 06 Dec 2009, 00:49

Re: VSync causing stuttering effect

Postby Calinou » 16 Dec 2013, 15:02

Arthur {l Wrote}:Also, the game has an FPS cap of 120 otherwise, which can be changed in the config file (but really there's nothing to earn over using VSync unless you want to set it very low and thus slow down the whole game... slo-mo effect due to the game's internal clock being dependent upon FPS).


Limiting it to something like 61 (to prevent tearing on some 60 Hz screens) reduces:
- power usage (= less expensive to play STK)
- graphics card noise
- graphics card and CPU temperature
- hardware stress (= can last longer)

It'd actually be better to have 61 or something like that (62-65) as a default FPS limit, the vast majority of people have 60 Hz screens.
User avatar
Calinou
 
Posts: 171
Joined: 22 Jan 2010, 21:43
Location: France

Re: VSync causing stuttering effect

Postby Auria » 18 Dec 2013, 01:04

Calinou {l Wrote}:
Arthur {l Wrote}:Also, the game has an FPS cap of 120 otherwise, which can be changed in the config file (but really there's nothing to earn over using VSync unless you want to set it very low and thus slow down the whole game... slo-mo effect due to the game's internal clock being dependent upon FPS).


Limiting it to something like 61 (to prevent tearing on some 60 Hz screens) reduces:
- power usage (= less expensive to play STK)
- graphics card noise
- graphics card and CPU temperature
- hardware stress (= can last longer)

It'd actually be better to have 61 or something like that (62-65) as a default FPS limit, the vast majority of people have 60 Hz screens.


Agreed, we've been a bit lazy here, it's just that when developing it's easier to spot performance regressions if there's no speed cap. May make sense to change that though
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Who is online

Users browsing this forum: No registered users and 1 guest

cron