Re: [GD-General] worker threads, level loading and progress bars
Brought to you by:
vexxed72
From: <cas...@ya...> - 2002-08-07 02:38:10
|
Hmm... it seems to my now, that the problem with the multiple threads could be easily solved. The only OpenGL operation performed by the worker thread is to upload textures, so my texture manager could have a list of textures waiting to be uploaded, and I could process them on each game loop. Anyway, I still would like to hear how others have solve this problem. Ignacio Castaño cas...@ya... Ignacio Castaño wrote: > Hi, > to display a progress bar during the level loads, I've always used somekind > of callback mechanism, or a simple 'DoWork' function that performs a little > part of the work in each call and returns a special value when the work has > been finished. Those approaches worked ok, but the progress of the bar > wasn't smooth and the resulting code was not very clean: > ... _______________________________________________________________ Copa del Mundo de la FIFA 2002 El único lugar de Internet con vídeos de los 64 partidos. ¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/ |