Gamestudio Links
Zorro Links
Newest Posts
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/12/26 08:50
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 1,733 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A lot of screen tearing... #423002
05/22/13 09:33
05/22/13 09:33
Joined: Apr 2013
Posts: 19
Zyro_Falcon Offline OP
Newbie
Zyro_Falcon  Offline OP
Newbie

Joined: Apr 2013
Posts: 19
Any kind of script - any kind at all - when run on my PC, will always result in some horrible tearing. I'd hate to use V-Sync, as it gives a noticeable delay between controller input and screen output.

Monitor Refresh is 75Hz. I can play Team Fortress 2/ Burnout/ Starcraft and other games with disabled V-Sync and 75Hz fine... No tearing there.

Is there some code I'm missing that would help solve this tearing issue, or is it just my machine?

Re: A lot of screen tearing... [Re: Zyro_Falcon] #423009
05/22/13 12:37
05/22/13 12:37
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
fps_max?
but if it gets out of sync you'll have tearing aswell.

...and I'm not 100% sure if this solves the input lag.

Last edited by Kartoffel; 05/22/13 12:45.

POTATO-MAN saves the day! - Random
Re: A lot of screen tearing... [Re: Kartoffel] #423010
05/22/13 13:06
05/22/13 13:06
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Using triple buffering should help reduce the amount of tearing:

http://www.conitec.net/beta/ad3d_triplebuffer.htm


Always learn from history, to be sure you make the same mistakes again...
Re: A lot of screen tearing... [Re: Uhrwerk] #423012
05/22/13 13:49
05/22/13 13:49
Joined: Apr 2013
Posts: 19
Zyro_Falcon Offline OP
Newbie
Zyro_Falcon  Offline OP
Newbie

Joined: Apr 2013
Posts: 19
@Kartoffel: The input lag is only noticeable with V-Sync (vertical sync) on. I leave it off to keep input latency at bay, and I don't have problems with tearing with V-Sync off in most games.

Sorry guys; fps_max didn't help, and triple buffering made it worse. oO

Re: A lot of screen tearing... [Re: Zyro_Falcon] #423013
05/22/13 14:18
05/22/13 14:18
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Whats your framerate when this happens?

What did triple buffering made worse? The lag or the tearing?


Always learn from history, to be sure you make the same mistakes again...
Re: A lot of screen tearing... [Re: Uhrwerk] #423035
05/23/13 08:35
05/23/13 08:35
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
^... yes; + does you fps drop before this happens or do you always have max-fps?

also, you said your monitor has a refresh rate of 75. Did you set the right windows-settings for this?


POTATO-MAN saves the day! - Random
Re: A lot of screen tearing... [Re: Kartoffel] #423168
05/25/13 00:28
05/25/13 00:28
Joined: Apr 2013
Posts: 19
Zyro_Falcon Offline OP
Newbie
Zyro_Falcon  Offline OP
Newbie

Joined: Apr 2013
Posts: 19
@Uhrwerk: Triple buffering made the screen tearing worse...

Framerate is always at max, i.e. above 75 fps. F11 display tells me my framerate can go as fast as 250 fps. Windows setting is correct, 75 fps.

Re: A lot of screen tearing... [Re: Zyro_Falcon] #423169
05/25/13 00:47
05/25/13 00:47
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Triple Buffering will only help if your framerate is below your monitors refreshrate, not above. So this is one of the cases where you should use v-sync. The controller delay should be no longer than 13 milliseconds (That is already the worst possible case). I doubt this is really noticeable.

Does enabling v-sync give you a constant 75 fps?


Always learn from history, to be sure you make the same mistakes again...
Re: A lot of screen tearing... [Re: Uhrwerk] #423190
05/25/13 12:33
05/25/13 12:33
Joined: Apr 2013
Posts: 19
Zyro_Falcon Offline OP
Newbie
Zyro_Falcon  Offline OP
Newbie

Joined: Apr 2013
Posts: 19
Enabling v-sync from the graphics card control panel does give me a constant 75 fps.

I should probably mention now that I just noticed using fps_max does eliminate a lot of tearing, but somehow it alters my physics by raising everything's max speeds higher...

Exploring with V-sync on, no tearing was observed (as expected), but it reveals that my ship's movement is in actuality very 'jerky'. I'm using pXent functions with the ackphysx.h library.

Using time_step atm. Is it a suspect? Time_step vs time_frame much?

Re: A lot of screen tearing... [Re: Zyro_Falcon] #423202
05/25/13 14:34
05/25/13 14:34
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
time_step is the correct variable to use in many scenarios. Use time_frame only when you want to ignore time_factor. If your movement is jerky at about 75 fps chances are pretty high there is timing fault somewhere. But thats just a guessing game with this few information...


Always learn from history, to be sure you make the same mistakes again...

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1