Updating the gpu buffer and how drawVertexPrimitiveList...
Posted: Tue Feb 06, 2018 12:41 am
Hello,
This question relates to using shaders in a specific way where the vertices and indices aren't updated in every frame inside the call
for drawVertexPrimitiveList and the positions of the vertices are updated with a time variable on the gpu in the shader only (not the cpu). The question I have is this,
If the vertices and indices in drawVertexPrimitiveList are NOT changed per frame but the call is still made, does the memory
for the data inside the function still get sent over from the cpu to the gpu or does it stay in the buffer and only the shader
updates the vertices (positions, etc.)?
I also wondered about the last parameter drawVertexPrimitiveList on this page http://irrlicht.sourceforge.net/docu/cl ... b3b1e2f4fb
I tried setting the video::EIT_16BIT to 32 bit and my program crashed saying allocation wasn't possible ( not the exact quote but something
related to memory I guess), is there something else that needs to be set?
I just wondered what the differences were for the two settings, is it more memory allocation on the gpu. Mines only a gig so 32 bits would be 4 gigs?
thanks!
This question relates to using shaders in a specific way where the vertices and indices aren't updated in every frame inside the call
for drawVertexPrimitiveList and the positions of the vertices are updated with a time variable on the gpu in the shader only (not the cpu). The question I have is this,
If the vertices and indices in drawVertexPrimitiveList are NOT changed per frame but the call is still made, does the memory
for the data inside the function still get sent over from the cpu to the gpu or does it stay in the buffer and only the shader
updates the vertices (positions, etc.)?
I also wondered about the last parameter drawVertexPrimitiveList on this page http://irrlicht.sourceforge.net/docu/cl ... b3b1e2f4fb
I tried setting the video::EIT_16BIT to 32 bit and my program crashed saying allocation wasn't possible ( not the exact quote but something
related to memory I guess), is there something else that needs to be set?
I just wondered what the differences were for the two settings, is it more memory allocation on the gpu. Mines only a gig so 32 bits would be 4 gigs?
thanks!