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 / Long load times in v108 and fps drop

Author
Message
Cor
AGK Developer
13
Years of Service
User Offline
Joined: 19th Dec 2010
Location: Its a trap!
Posted: 6th Jan 2013 20:53
hey guys,
So I finally got all updated to the new 108 version( I updated from v1076)
To my surprise load times were almost double, and on the Ipad (1st generation) the app dropped to 25 fps from 60 fps

Is there any new tricks with the new version that I am missing? It is strange that it had such a big drop in FPS when I didn't change a single thing (besides updating AGK)

Any help is greatly appreciated as I am close to releasing the app
I am sorry I cant post any of my code because it is a rather large project and is going to be a commercial app
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 6th Jan 2013 21:31
Do you use the render command or drawsprite so replace them with something else.
They are alot slower now.

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
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 6th Jan 2013 21:56
Quote: "Is there any new tricks with the new version that I am missing? It is strange that it had such a big drop in FPS when I didn't change a single thing (besides updating AGK)"

Its 3d that messes it up
My editor went from 30 fps to 60 by doing this.
Replace sync()
with this!



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
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 6th Jan 2013 21:56
Try the command SetImageSavePixels(0), this will skip a loading step that makes the image manipulation commands faster. Namely CreateMemblockFromImage, CopyImage, or SetImageMask. This only applies to single core devices like the iPad 1 as the other devices do this step in a background thread.
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 6th Jan 2013 22:03
Paul only create an native 2d only sync command

Sync2Donly() is a good name

Your explanation in the beta thread explained it all

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
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 6th Jan 2013 22:19
Paul informed me that you dont even nead the ClearDepthBuffer()
and gets your 2d even faster

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
Cor
AGK Developer
13
Years of Service
User Offline
Joined: 19th Dec 2010
Location: Its a trap!
Posted: 6th Jan 2013 22:49
Thanks for the help guys! I appreciate it alot! Now I just need to add In app purchases in and I am good to go!
JimHawkins
14
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 6th Jan 2013 23:07
Cor - Are you really going to release stuff using a beta system? Is this wise?

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL

Login to post a reply

Server time is: 2024-05-06 21:26:27
Your offset time is: 2024-05-06 21:26:27