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.

Android / Graphic Hickup Resolved!

Author
Message
SoftMotion3D
AGK Developer
13
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 26th Dec 2012 21:46 Edited at: 26th Dec 2012 21:49
For those setting a sync rate and every second seeing a slight blip...where the graphics stick and then smooth again.

I've resolved it and gotten smooth playback for my hockey game by doing this...

at start of your project type this:

setsyncrate(120,0)
global time#


now just before the start of your main loop....grab the time:

time#=timer()


then in your process before syncing add this function:

//main loop
do

//got some game to process

//blah blah

//ok now grab a delay
delay()
sync
loop

//this function delay here
function delay()
while timer()<time#+.015
endwhile
time#=timer()
endfunction

So this resolves the sync blip graphic glitch on the blackberry device.
I have a feeling that the sync() command gets a head of itself and slows down and causes the blip....using the timer keeps it in sync.
Also using any other value then 0.015 makes it blip again....or choppy if larger. 0.015 is the magic number and should return a solid 60fps rate




edit: will look choppy on windows however...lol! so dont use that until your testing on your playbook

Login to post a reply

Server time is: 2019-07-18 02:11:10
Your offset time is: 2019-07-18 02:11:10