Multithreaded texture loading?

The place to discuss creating, porting and modifying Celestia's source code.
Guest

Multithreaded texture loading?

Post #1by Guest » 05.06.2002, 08:56

I find the jump when going to something quite annoying. How about creating a loading thread when you hit g so that the texture would be loaded by the time you get there?

Axel

Texture precaching

Post #2by Axel » 08.06.2002, 11:29

Hi,

wouoldn't work because Celestia has to wait for the next objects texture to be loaded anyway.

Only way would be to precache them during the startup, resulting in longer startup-times.

Next probs seem to be Celetia always loads the full texture no matter how far away. And the full texture is used instaed of single rectangles because it's mapped to an OpenGL sphere, not to smaller patches making up a sphere.

CU, :P
Axel

Guest

Post #3by Guest » 10.06.2002, 13:15

You could use threads or manual timeslices to a file loader which uses memory mapped files to read a bit at a time. See the it's still loading paper here : http://www.drizzle.com/~scottb/gdc/
It would be a big job though :)


Return to “Development”