Back to articles
🎨 Dynamic Texture Loading in NervForge: Async Promises in C++/WASM
NewsTools

🎨 Dynamic Texture Loading in NervForge: Async Promises in C++/WASM

via Dev.toThe Lone Engineer

New short devlog on a neat quality-of-life improvement: textures in NervForge are now loaded on demand from a remote manifest, with a promise-based async system handling the download and material update. Note: You can try NervForge directly in your browser: https://nervtech.org/nervforge/ The core idea: instead of bundling all textures upfront, a resource manifest lists available remote files. Selecting a new texture triggers an async download, shows a checkerboard placeholder in the meantime, then swaps in the real texture once ready β€” and caches it locally for future sessions. What's covered: Resource manifest pattern for remote asset discovery Promise-based async texture creation API (in NervSDK) Main-thread callback chaining for safe material updates Local caching strategy to avoid redundant downloads Bonus: horizon-level black artifact fix on planet rendering The promise system itself is open source in NervSDK β€” worth a look if you need lightweight async task handling in a C++/WAS

Continue reading on Dev.to

Opens in a new tab

Read Full Article
7 views

Related Articles