From 8214dca45602263b4aaa4a8d56d63be56c641e8c Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 10 Sep 2008 02:17:26 +0000 Subject: [PATCH] async-load-delay for textures too --- panda/src/pgraph/textureReloadRequest.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panda/src/pgraph/textureReloadRequest.cxx b/panda/src/pgraph/textureReloadRequest.cxx index 1864ff9ef0..539f70c8b6 100644 --- a/panda/src/pgraph/textureReloadRequest.cxx +++ b/panda/src/pgraph/textureReloadRequest.cxx @@ -26,6 +26,11 @@ bool TextureReloadRequest:: do_task() { // Don't reload the texture if it doesn't need it. if (_texture_context->was_image_modified()) { + double delay = async_load_delay; + if (delay != 0.0) { + Thread::sleep(delay); + } + if (_allow_compressed) { _texture->get_ram_image(); } else {