Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FNA dynamic buffer warning: "Dynamic buffer using SetDataOptions.None, expect bad performance and broken output!" #743

Open
TheDreadWolf opened this issue Sep 14, 2022 · 0 comments

Comments

@TheDreadWolf
Copy link

I'm experimenting with using Nez with FNA. I created a single entity with a SpriteRenderer. Everything renders correctly, but the logs are spammed with "Dynamic buffer using SetDataOptions.None, expect bad performance and broken output!" every time the Draw function is executed. This error comes from the FNA3D.dll but this line in Batcher.cs triggers it:
_vertexBuffer.SetDataPointerEXT(0, (IntPtr)p, _numSprites * VertexPositionColorTexture4.RealStride, SetDataOptions.None);
I'm fairly certain that this error is caused by creating a dynamic buffer but not using enough data to fill it, since if I set MAX_SPRITES to 1, the warning goes away. Should I be concerned about this warning and is there anything I can do to get rid of it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant