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

SDL failed to get a vertex buffer for this Direct3D 9 rendering batch! #131

Closed
HexDecimal opened this issue Jul 10, 2023 · 1 comment
Closed
Labels

Comments

@HexDecimal
Copy link
Collaborator

HexDecimal commented Jul 10, 2023

You might see this error when running a tcod program. This 'problem' has always existed but is now visible due to logging being enabled. It affects all programs using SDL's direct3d render driver.

RENDER:SDL failed to get a vertex buffer for this Direct3D 9 rendering batch!
RENDER:Dropping back to a slower method.
RENDER:This might be a brief hiccup, but if performance is bad, this is probably why.
RENDER:This error will not be logged again for this renderer.

There is no regression. Older versions of libtcod simply didn't log this error which is why you didn't see it in previous versions. Your program is running as fast as it did before.

As a workaround, you can suppress the error by disabling logging for SDL:

import logging
logging.getLogger("tcod.sdl").disabled = True

I'm mostly waiting on SDL to update their renders. I'd report this to them but it's not clear what there is to report.

@HexDecimal
Copy link
Collaborator Author

HexDecimal commented Jul 10, 2023

The one time I finally decide to report this is when it was fixed in the latest version of SDL.

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

No branches or pull requests

1 participant