Hi group,
I have a problem and maybe somebody had got the same anytime.
My program uses an Animator thread to invoke the display method. The ‘display’ method of the GLCanvas invoques secuentially a method called ‘render’ on every object to be rendered (sphere, cube, etc.)
This works fine.
Also I have another thread called Updater, that every 500ms invokes the method ‘Update’ secuentially on every object. Thus when an object needs to be updated (change its color or load an image) the method ‘update’ is responsible for this.
My problem comes when I have, for example, 20 object that needs to load an image from disk (aprox. 30kb). It seems that the ‘update’ task executed in the ‘Updater’ thread consumes to much resources and the Animator thread or ‘Render’ methods are paused until the images are loaded.
In summary, the canvas seems freeze for a while.
I create the Updater thread as ‘daemon’ and with MIN_PRIORITY.
Anybody has found the same problem in any application?
Any ideas to solve it?
Thanks in advice.
PD: I have 64mb memory ATI card.