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.

DarkBASIC Professional Discussion / CometSYNC with shaders

Author
Message
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 5th Sep 2011 03:47
Hi all,

For a while now I've been using the wonderfully versatile CometSYNC function for syncing my games, but in my latest project I'm using Evolved Software's Advanced Lighting shader system, which, when combined with CometSYNC, slows my game WAAAAYYYYY down and stops it from updating the screen pretty much at all... I've updated the CometSYNC routine to use both 'SYNC' and 'SYNC 2^0' but no joy... Anyone else had this problem or know how to sort it out?

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 5th Sep 2011 14:46 Edited at: 5th Sep 2011 14:47
If you're just timing your game I don't get much problem with


If t<= Timer()

Do your stuff

t = timer()+ Speed
endif

And since I have upgraded my computer 3 times in the past few years, my old games still run at the right speed.

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 5th Sep 2011 15:15
Wow, I never thought someone would use my function

I know this sounds strange, but I advise you not to use it, because there are much easier ways to do this, and my function can be a little strange sometimes. One method being Pincho's example above (extended version):



Thanks for using my code though, I appreciate it

TheComet

CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 5th Sep 2011 16:36
Haha wow, Comet, you know I never clicked that it was from you!? It's helped me a GREAT deal in the past, but I'll take a look at how Pincho's method can help.

Thanks for the tip!

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame

Login to post a reply

Server time is: 2026-07-10 12:02:39
Your offset time is: 2026-07-10 12:02:39