azul3d / engine

Azul3D - A 3D game engine written in Go!
https://azul3d.org
Other
615 stars 52 forks source link

gfx/gl2: use fences for resource loading instead of glFinish #158

Open slimsag opened 8 years ago

slimsag commented 8 years ago

glFinish causes the CPU and GPU to sync entirely, when in reality we only need the render thread to block when the resource is actually being used. We can use fences for this.