Arcen Games

General Category => A Valley Without Wind 1 & 2 => AVWW Technical Support => Topic started by: KingIsaacLinksr on February 22, 2013, 06:35:24 pm

Title: Noticable Lag when moving
Post by: KingIsaacLinksr on February 22, 2013, 06:35:24 pm
I'm not sure if this has been brought up before, but when I'm moving around in the platforming section, the screen stutters and lags like the CPU is being overworked during that part. It only happens in the bigger areas and its only just screen stuttering, the character moves fine, the CPU isn't working hard and the FPS-monitor says its running at 59-60fps during the entire time. Any way to fix this?
Title: Re: Noticable Lag when moving
Post by: x4000 on February 22, 2013, 08:30:51 pm
In Valley 2?  That would be the first I've heard of that.

It sounds like perhaps Vsync isn't on, though, which would be odd -- it defaults to on.  Usually that causes screen tearing rather than stuttering, though.  Maybe if it is on you might try turning it off temporarily; perhaps it's having trouble matching your refresh rate or something.  That's all I can think of offhand, anyhow.
Title: Re: Noticable Lag when moving
Post by: Penumbra on February 22, 2013, 09:10:45 pm
I get that exact same stuttering in large areas that have "complicated" backgrounds. Turning off V-Sync is what fixes it for me. My frame rate jumps to 2-4 hundred and I have never actually noticed the tearing. The stuttering with it on, however, was annoying.

I always assumed it was something to do with my setup.
Title: Re: Noticable Lag when moving
Post by: x4000 on February 22, 2013, 09:34:20 pm
Hmm, that is really odd. Do you have an 80hz display perhaps? That might mess with vsync.  And with 200+ fps the tearing is highly unlikely to see, too, so that works out anyhow.
Title: Re: Noticable Lag when moving
Post by: KingIsaacLinksr on February 22, 2013, 10:35:23 pm
For whatever reason, the in-game setting for FPS sticks to either 61 or 59. It will not stay on 60. V-Sync is on and if it isn't on, well, the screen tears horribly and I can't ignore it. When the stuttering does happen, it goes down to 59.3 FPS give or take .5.
Title: Re: Noticable Lag when moving
Post by: Penumbra on February 23, 2013, 02:23:20 am
This is just a guess, but the FPS display appears to be "trying its best" to be accurate, and gives you an average. So, with V-sync, it is either 60 FPS or, sometimes, 30 FPS. The average over the past however-many frames gives you 59.x (or, probably with a rounding error, 60+).

Personally, I have a 10 year old Apple Cinema Display. It's only 60 hz.
Title: Re: Noticable Lag when moving
Post by: x4000 on February 23, 2013, 07:36:18 am
The fps display is not accurate, yeah -- it's subject to the inaccuracies of system.datetime.now in mono, which can be off by a few tens of ms per frame depending.

If not having vsync on fixes the stuttering, then that's definitely the cause. But it's all a black box as far as I'm concerned under that -- we tell unity 3d to "use vsync!" And that's th extent of what we can do with that. If its not monitor refresh being off, I'd have to guess either some sort of external double or triple buffering solution causing oddities, or else some sort of graphics card driver issue. It's rare for me to ask this, but are you on the latest version of your graphics drivers?
Title: Re: Noticable Lag when moving
Post by: Penumbra on February 23, 2013, 09:37:36 am
Yes, my drivers are up to date.

I forgot one more important thing: for me at least, this only happens when in windowed mode. Full Screen fixes the stutter completely, and I can leave v-sync enabled.
Title: Re: Noticable Lag when moving
Post by: x4000 on February 23, 2013, 12:36:14 pm
Huh, that's really odd. I play pretty well exclusively in windowed mode with vsync on. I'm using an nvidia 8800gts with 2+ year old drivers (the 180.something build, which is rock solid before they went through a buggy few months and I stopped updating). What's your card, just so I know?
Title: Re: Noticable Lag when moving
Post by: KingIsaacLinksr on February 23, 2013, 12:39:30 pm
I'm running on an EVGA GTX 660 Superclocked+. Drivers were updated just the other day. Full-screen doesn't fix my problem, since I run all my games in full-screen.
Title: Re: Noticable Lag when moving
Post by: x4000 on February 23, 2013, 01:23:57 pm
I'm not sure what to suggest, then. Though you might have some good luck with d3d overrider. Unity 3d does not support double or triple buffering natively, but you could enable that with d3d overrider. Among other more global tweaks. Something is different in that level of settings on your machine I think, and I think that's the main way to solve it. I don't know what specific combination of settings would resolve it, though, as I've never encountered this specific issue.
Title: Re: Noticable Lag when moving
Post by: Cinth on February 23, 2013, 01:32:19 pm
I've heard of some games having issues with the 310+ series of Nvidia drivers.

Have you tried a 300 series driver?
Title: Re: Noticable Lag when moving
Post by: KingIsaacLinksr on February 23, 2013, 02:41:56 pm
I turned on triple buffering and V-sync in the 3D settings on the Nvidia panel and that seems to have made it go away. So, success. :)
Title: Re: Noticable Lag when moving
Post by: x4000 on February 23, 2013, 02:43:57 pm
Yay!
Title: Re: Noticable Lag when moving
Post by: keith.lamothe on February 23, 2013, 02:47:42 pm
I turned on triple buffering and V-sync in the 3D settings on the Nvidia panel and that seems to have made it go away. So, success. :)
Remember: it could always be worse.  You didn't have to resort to ponies.
Title: Re: Noticable Lag when moving
Post by: KingIsaacLinksr on February 23, 2013, 02:58:57 pm
I turned on triple buffering and V-sync in the 3D settings on the Nvidia panel and that seems to have made it go away. So, success. :)
Remember: it could always be worse.  You didn't have to resort to ponies.

Oh *shudder*. It still scares me that AIW fixed a problem with ponies.
Title: Re: Noticable Lag when moving
Post by: Oralordos on February 23, 2013, 03:57:15 pm
I turned on triple buffering and V-sync in the 3D settings on the Nvidia panel and that seems to have made it go away. So, success. :)
Remember: it could always be worse.  You didn't have to resort to ponies.
That was the most hilarious bug ever.
Title: Re: Noticable Lag when moving
Post by: Penumbra on February 23, 2013, 07:55:26 pm
I turned on triple buffering and V-sync in the 3D settings on the Nvidia panel and that seems to have made it go away. So, success. :)
Remember: it could always be worse.  You didn't have to resort to ponies.

To be honest, you don't know how nvidia implemented that feature. ;)
Title: Re: Noticable Lag when moving
Post by: x4000 on February 23, 2013, 07:58:55 pm
Fortunately the ponies fix was temporary, but that was sure hilarious. Working around a bug in radeon drivers, heh.
Title: Re: Noticable Lag when moving
Post by: Mánagarmr on February 24, 2013, 09:22:19 am
I might add that VSync syncs to some "milestones", so if you are running at 60 FPS and drop below it, even just 2-3 FPS, Vsync will instantly sync to 30 instead, giving you 30 FPS. If you drop below 30, you lock to 15 instead. So if you can just barely manage 60 FPS, and drop below it quite often, you might want to turn VSync off, or you will likely be stuck at 30 FPS most of the time.