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

Remove the vertices/triangles limit per surface #3

Open
MikeHart66 opened this issue Dec 9, 2016 · 1 comment
Open

Remove the vertices/triangles limit per surface #3

MikeHart66 opened this issue Dec 9, 2016 · 1 comment

Comments

@MikeHart66
Copy link

I think there is a limit of around 64.000 vertices/triangles per surface. Would be awesome to remove that limitation.

@kfprimm kfprimm changed the title Request: Remove the vertices/triangles limit per surface Remove the vertices/triangles limit per surface Dec 9, 2016
@kfprimm
Copy link
Member

kfprimm commented Dec 9, 2016

Cool, great suggestion.

Unfortunately, it looks like this is a hard limit of D3D7. IDirect3DDevice7::DrawIndexedPrimitiveVB accepts on a WORD (unsigned short) array which has a limit of 65535. Moreover, it's codified as D3DMAXNUMVERTICES.

That being said, the good news is that OpenGL and D3D9+ allow for larger index types so we can remove the limit on those renderers.

So, this will have to wait until we manage to decouple the rendering code from the engine code.

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

No branches or pull requests

2 participants