Skip to content

OpenGL renderer with asynchronous loading of assets (experiment).

Notifications You must be signed in to change notification settings

dobrakmato/async-opengl-renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async-opengl-renderer

OpenGL renderer with asynchronous loading of assets (experiment).

The application first starts with rendering quad without texture.

https://i.imgur.com/7mzQGNy.png

After 1 second a load request is dispatched to content loading system, which asynchronously loads file from disk, decodes it and uploads image data to GPU without blocking or stopping the main thread, so the OpenGL application continues to run smoothly (without any fps drop) even when data is being uploaded to GPU.

The whole thing is based on creating another OpenGL context in uploader thread, which shares resources with the main render thread. The communication is synchronized using GL fences.

https://i.imgur.com/q8iqMb2.png

About

OpenGL renderer with asynchronous loading of assets (experiment).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages