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.

AppGameKit Classic Chat / Critical agk performance bug? or is it old

Author
Message
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 12th Feb 2013 15:03 Edited at: 12th Feb 2013 17:16
corrected as it whas an slow heads code typo

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 12th Feb 2013 15:34
hmmm,what do this?

e=100300
print(e)
for t=Playerzone+1 to e

e=Playerzone+300
print(e)
fot t=Playerzone+1 to e
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 12th Feb 2013 15:53
Which one is slow? You realize the first line reads 100300? So this is one hundred thousand, three hundred, and not ten thousand 300 as I suspect you may want..

Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 12th Feb 2013 15:54
It all depends on what playerzone is set to initially. But it could be the first loop is looping through 100300 iterations, whilst the second one is looping through 300 iterations.
A huge difference.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 12th Feb 2013 16:01
Dvader has it right, your first loop is doing 10 times as many iterations as the second.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 12th Feb 2013 17:10
i have to blame my illnes on this
Its not easy with an tired head .

I whas pretty sure i had it to 10300

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz

Login to post a reply

Server time is: 2024-05-07 09:53:29
Your offset time is: 2024-05-07 09:53:29