heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
69 stars 3 forks source link

The main overload of `GL.set_uniforms()` will allocate when handling an array of `Texture` or `View`. #42

Open heyx3 opened 1 year ago

heyx3 commented 1 year ago

It maps the textures and views to a local list of pointers, handles::Vector{Ptr_View}. This list should be pooled and re-used somewhere.

The easiest/laziest solution is to put it in the Program. The most memory-efficient solution is to put it within the Context.