-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - Cleanup many sprites stress tests #7436
Conversation
Are there no longer plans for adding 2d frustum culling? If I'm remembering right, we only briefly had a buggy implementation (not sure if it was merged actually), but many_sprites was added to test it. There's a stalled out PR here: #3944. It seems potentially worth doing. Could the text be tweaked slightly so that it doesn't imply that this is something we're already doing? |
d08683f
to
6433744
Compare
Since the new renderer, no frustum culling is applied to 2d components (be it Sprite or Mesh2d), the stress_tests docs is therefore misleading and should be updated. Furthermore, the `many_animated_sprites` example, unlike `many_sprites` kept vsync enabled, making the stress test less useful than it could be. We now disable vsync for `many_animated_sprites`. Also, `many_animated_sprites` didn't have the stress_tests warning message, instead, it had a paragraph in the module doc. I replaced the module doc paragraph by the warning message, to be more in line with other examples.
6433744
to
e199d5c
Compare
@nicopap CI appears to be failing due to a broken import. Once that's fixed, I'm happy to merge this. |
bors r+ |
Since the new renderer, no frustum culling is applied to 2d components (be it Sprite or Mesh2d), the stress_tests docs is therefore misleading and should be updated. Furthermore, the `many_animated_sprites` example, unlike `many_sprites` kept vsync enabled, making the stress test less useful than it could be. We now disable vsync for `many_animated_sprites`. Also, `many_animated_sprites` didn't have the stress_tests warning message, instead, it had a paragraph in the module doc. I replaced the module doc paragraph by the warning message, to be more in line with other examples. ## Solution - Remove the paragraph about frustum culling in the `many_sprites` and `many_animated_sprites` stress tests
Pull request successfully merged into main. Build succeeded:
|
Since the new renderer, no frustum culling is applied to 2d components
(be it Sprite or Mesh2d), the stress_tests docs is therefore misleading
and should be updated.
Furthermore, the
many_animated_sprites
example, unlikemany_sprites
kept vsync enabled, making the stress test less useful than it could be.
We now disable vsync for
many_animated_sprites
.Also,
many_animated_sprites
didn't have the stress_tests warningmessage, instead, it had a paragraph in the module doc. I replaced the
module doc paragraph by the warning message, to be more in line with
other examples.
Solution
many_sprites
and
many_animated_sprites
stress tests