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

Multiple Scene Viewports reduces performace by a lot! #3

Closed
MohitSethi99 opened this issue Apr 23, 2022 · 1 comment
Closed

Multiple Scene Viewports reduces performace by a lot! #3

MohitSethi99 opened this issue Apr 23, 2022 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@MohitSethi99
Copy link
Owner

How to Reproduce:

  • Run the engine
  • Note the frame time
  • Add one more scene viewport by going to Menu Bar, Window>Add>Viewport
  • Note the frame time, should be around x15 higher than single viewport which is not acceptable frame time.

Result:

Two scene viewports with an empty scene can bog down the performance taking 20+ms

Expected:

Adding more Scene Viewports is bound to degrade performance but not at this scale

More Info:

OneSceneViewport

One scene viewport, CPU time: 1.227ms

TwoSceneViewports

Two scene viewports, FPS: 20.35ms

@MohitSethi99 MohitSethi99 added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Apr 23, 2022
@MohitSethi99
Copy link
Owner Author

MohitSethi99 commented Apr 23, 2022

Seems like the pipeline is being stalled by framebuffers because they are resized quite a lot between frames

MohitSethi99 added a commit that referenced this issue Apr 23, 2022
Bundled up the Render terxtures (Framebuffer) with SceneViewport, hence one does not stalls on the other
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant