open_toontown_panda3d/panda
rdb fa0ea312ea gobj: Move TextureReloadRequest to new Texture::async_ensure_ram_image()
The task is implemented with just a simple lambda, much more compact than a whole TextureReloadRequest task.  The latter is now deprecated.

Since Loader can't be used within Texture, there's now a new task chain, configurable with texture-reload-num-threads and texture-reload-thread-priority.  This does mean that it no longer happens on the same thread as model loads, but I think that's fine, and perhaps texture reloads should be higher priority than model loads anyway since a long texture reload delay with allow-incomplete-render directly and negatively affects user experience during gameplay.

The new name also better communicates that it just calls get_ram_image(), it doesn't force a reload, but we could add an async_reload() for that if we want.
2021-11-30 10:34:00 +01:00
..
metalibs Merge branch 'release/1.10.x' 2021-03-24 13:58:00 +01:00
src gobj: Move TextureReloadRequest to new Texture::async_ensure_ram_image() 2021-11-30 10:34:00 +01:00
CMakeLists.txt CMake: generate panda3d.dist-info directory 2020-04-30 21:37:35 +02:00