You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @AlexAPPi .. could please provide more details of what you're trying to do? I'm not sure I understand this issue.
Hi! I use the same buffer for the model, and modify it, every time it is unloaded to the GPU, the engine makes a copy of the same buffer, although there is no point in doing this, because this is the same buffer.
a more manual way of using Vertex and Index buffer directly
What you can do is to create Vertex and Index buffer yourself and upload data to them as needed. In this case, you would not use mesh.setIndices() and mesh.update(), but manage buffers yourself.
I'll close this as I believe this is what you need, but please re-open if I missed something.
When writing a terrain system, I need to reuse buffers, it would be nice to implement this for the mesh API.
engine/src/scene/mesh.js
Line 1021 in 57cbfd4
engine/src/platform/graphics/index-buffer.js
Line 196 in 57cbfd4
The text was updated successfully, but these errors were encountered: