-
Notifications
You must be signed in to change notification settings - Fork 447
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
Improve Performance of Debug Drawing #3164
Comments
This is due to the lines in OpenFL being CPU wise causes REALLY shitty perfomance, it's not even funny |
it's a major breaking change because every class has debug draw functions that take a openfl.display.Graphic instance, and we're gonna gut those out. also any custom debug draw logic that draws to gfx is gonna break |
Why? Why would you do any of that? You're convoluting and trying to make a whole ass system that could be fixed with 4 simple commands |
I don't understand what you're suggesting |
Just 4 commands of drawing a rectangle with a color, it's simple as that lmao |
I think for this we can definitely poke into Austin East's graphics work that he had in a branch from a while ago https://github.com/AustinEast/flixel/tree/dev of course, it was not entirely finished, and might have some old incompatible code, but I think it might be a decent move towards some more broad rendering overhauls #2915 |
one in particular might be the which extends FlxStrip, which uses GPU drawing. However of course, more changes here would be some FlxStrip changes, along with general broad rendering changes. Food for thought since on the topic of rendering |
I keep getting conflicting accounts of whether we should be using triangles or quads, in many of my experiences, quads seems to win. One thing I will absolutely bet on, if we could render all the debug drawing stuff at once in either a quad batch or a triangle batch I think it would be a ton faster (or about as fast as quad batching is for normal FlxSprites) since the draw order of debug drawing doesn't matter, and they need to draw on top of everything for each camera, could we simply defer drawing them all until the after the entire draw phase? |
Using an OpenFL graphic to draw bounding boxes causes terrible performance, what if we have a secret debug camera that draws everything, instead?
Note: This will introduce major breaking changes to nearly everything, and should probably be done in tandem with this change: #2715
The text was updated successfully, but these errors were encountered: