PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Sample app Edge Saver slow on iPhone device

Hi,

I've tried running my application on an iPhone itself and ran into some issues, so I thought it best to try and run one of the sample applications on the iPhone first as that code cannot be incorrect.

I was quite surprised at the performance, the animation was running very slowly. I tried resetting the device, and building both the debug and release versions with no effect.

Is there a chance I've done something wrong?
Hi Tonegolf,

There is nothing wrong. The problem is that applications not using OpenGL are slow, because refreshing the display takes longer in comparison with other devices.

The best option for fast applications is to enable OpenGL and use the display functions when drawing 2D.
Sorry for the "noob" question Edge, but what do you mean by "using the Display functions" ?
Functions such as Blt and BltFast that can, from what I heard, be used through OpenGL ?
Thanks.
totoch wrote:Sorry for the "noob" question Edge, but what do you mean by "using the Display functions" ?
Functions such as Blt and BltFast that can, from what I heard, be used through OpenGL ?
Thanks.


Yes, when OpenGL is enabled, display calls such as Blt and BltFast will be handled through OpenGL, make sure the texture is uploaded before using those.

More details on the following page (see headings "Uploading and binding textures" and "Mixing 3D/2D"):
http://www.edgelib.com/index.php?node=1097

Wouter