FocusEngine icon indicating copy to clipboard operation
FocusEngine copied to clipboard

Texture Streaming issues with Vulkan

Open phr00t opened this issue 6 years ago • 1 comments

Fortunately, I was able to get rid of an "AwaitReady" texture hack after xen2 (from the main branch) found issues were related to texture streaming & Vulkan.

He patched it up by initially loading a low resolution texture (so Vulkan had something to chew on) while the higher resolution texture gets streamed in. Reportedly this works on the main, official branch.

When I ported it, textures never got rendered at a higher resolution during testing, even though the code seemed to be getting the higher resolution texture.

Ultimately, I disabled texture streaming for Vulkan. This way, textures are loaded immediately and ready for use. This has its pros and cons... like reducing overhead loading textures a pro, while a con is having to wait for the texture to load (which is probably best loaded in another thread or during an app startup as a workaround). A con is also taking this choice away from the developer.

Anyway, I consider this progress (should result in faster texture loading and less hacks)... two steps forward, one back.

phr00t avatar Sep 06 '19 02:09 phr00t

Commit doing the above: https://github.com/phr00t/xenko/commit/cf7528cf667e5ca5ee4eed9464010fb3f3f7c783

phr00t avatar Sep 06 '19 02:09 phr00t