Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / horizontal lines on redraw

Author
Message
greenworm
User Offline
Joined: 5th Jul 2017
Location:
Posted: 11th Sep 2017 17:59
Why is this happening and is there a fix?
Cybermind
14
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Searching for The Dark Tower
Posted: 11th Sep 2017 19:00
Which version of AppGameKit are you using? Are you using SETSYNCRATE or SETVSYNC?
13/0
Supertino
User Offline
Joined: 22nd Jun 2017
Location: Behind you!
Posted: 12th Sep 2017 12:03
Are you saying there are gaps in images\tiles as they move or the edges appear to shimmer? you might need to look into 'extruding' your sprite edges http://www.matim-dev.com/texture-packer---get-rid-of-sprite-artefacts.html
greenworm
User Offline
Joined: 5th Jul 2017
Location:
Posted: 12th Sep 2017 19:09
I'm using the latest version, i'm using SetSyncRate(30,0).
greenworm
User Offline
Joined: 5th Jul 2017
Location:
Posted: 12th Sep 2017 19:11
Latest version, SetSyncRate(30,0) is what I am using
CJB
Valued Member
13
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 13th Sep 2017 12:08
If you're talking about tearing, then use SetVsync(1)
greenworm
User Offline
Joined: 5th Jul 2017
Location:
Posted: 13th Sep 2017 13:37
SetVsync(1) instead of setsyncrate(30,0) takes care of the 'tearing', unfortunately it makes the game unplayable because now it is set to 60 fps, but SetVsync(2) skips a frame and so far in limited testing I see no 'tearing'/ horizontal redraw lines. Thanks CJB for your input!!!!
CJB
Valued Member
13
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 15th Sep 2017 10:03
Higher frame rate shouldn't make your game unplayable, just look better (unless you are going for that low refresh rate retro look ). Glad you got it sorted

Login to post a reply

Server time is: 2017-09-21 09:52:47
Your offset time is: 2017-09-21 09:52:47