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

LaneSegment debug drawing has poor performance #102

Open
TheDuckCow opened this issue Jun 18, 2023 · 0 comments
Open

LaneSegment debug drawing has poor performance #102

TheDuckCow opened this issue Jun 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@TheDuckCow
Copy link
Owner

Right now we are using immediate geometry to draw the sawtooth fins (see screenshot below), but this class is really made more for drawing of small bits of geometry that might change every frame. Drawing the sawtooth fins across all roads leads to slow in game and in editor performance, to the point of not being useful.

Let's switch to another more persistent geometry type (since, if there are transform updates, we'd need to update the LaneSegment points these draw along anyways, so we already have an update hook).

Screen Shot 2023-06-17 at 6 55 26 PM
@TheDuckCow TheDuckCow added the bug Something isn't working label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant