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

Significant FPS drop when Camera Control is opened. #3246

Open
orange3134 opened this issue Dec 2, 2024 · 4 comments
Open

Significant FPS drop when Camera Control is opened. #3246

orange3134 opened this issue Dec 2, 2024 · 4 comments
Labels
bug Something isn't working as intended. triaged This issue has been assessed

Comments

@orange3134
Copy link

Describe the bug?

Opening Camera Control causes a significant drop in FPS.

I believe this is not due to the rendering of the camera, but due to some processing done by Camera Control.
Because there is a noticeably larger drop in FPS when the same camera is spawned as a Camera Control camera than when it is spawned as an item.

This FPS drop is also more pronounced for sessions with a larger number of users.

To Reproduce

  1. Join a session with several users.
    This phenomenon will be more noticeable with more than 5 users.
  2. Open the camera control and check for a drop in FPS.
    You will see that the FPS is about 30% lower than when the camera control is not out.

Expected behavior

FPS should not drop significantly.
In fact, if the same camera is spawned as an item from inventory, the FPS does not drop that much.

Screenshots

Video
I joined a session with several users and opened the camera control to see the FPS drop.
When the debug screen is opened, the Engine Update value appears to increase when the camera control is open.
https://youtu.be/mO2tmthqBAI

Resonite Version Number

Beta 2024.11.19.479

What Platforms does this occur on?

Windows

What headset if any do you use?

Bigscreen beyond

Log Files

MENTAIKO - 2024.11.19.479 - 2024-12-02 23_01_33.log

Additional Context

I verified this with a minimally configured camera to make sure that the Flux or components in the camera item itself were not the cause.
I just added an InteractiveCamera to the Box.

Here is the ResonitePackage for that camera.
Do not unzip it, but change the extension to .resonitepackage.

SimpleCamera.zip

Reporters

orange3134

@orange3134 orange3134 added the bug Something isn't working as intended. label Dec 2, 2024
@Frooxius
Copy link
Member

Frooxius commented Dec 2, 2024

Can you provide us with a bit more details on the testing with the minimally configured camera?

Did you just spawn the camera in the world for testing? Or did you set the minimal camera as your default streaming camera to use with the Camera Control?

If you spawn the default Resonite camera from Resonite Essentials, does that not drop the FPS?

@shiftyscales shiftyscales added the needs more information More information is requested about this issue. label Dec 2, 2024
@shiftyscales shiftyscales removed their assignment Dec 2, 2024
@orange3134
Copy link
Author

@Frooxius A minimal camera has been set as the default camera used for camera control.

When I spawn the default Resonite camera from Resonite Essentials, there is little to no drop in FPS.

Note that the same thing occurs when the default Resonite camera is used as the camera for Camera Control.
When the camera is simply spawned in the world, there is almost no FPS drop, but when using the Camera Control, there is a significant FPS drop.

@shiftyscales
Copy link
Collaborator

Is that drop consistent across all modes / settings for the camera? E.g. if you set it to "manual" so it is not actively tracking users (or place it in an anchor), does the same issue still occur, @orange3134?

Given your reproduction steps noting that the issue is more prominent with a higher number of users in the session- I suspect it could potentially be related to the bounds calculation the camera performs while trying to keep users in-frame.

Could you also see what happens if you reduce the "group detection radius" and group exclude boundary" values in the camera control panel settings, or manually exclude users from group detection in the "users" menu by pressing the 🚫 symbol next to each users name?

@orange3134
Copy link
Author

@shiftyscales
I have tried switching between various camera modes, changing the “group detection radius”/“group exclude boundary” values, using the 🚫 button to exclude all users except myself, and using the camera anchor.

In all situations, the FPS appears lower than without Camera Control.

Video
Switching camera mode, changing group values, excluding users
https://youtu.be/RCc3LF6TSyM

Using the camera anchor
https://youtu.be/568t8wicy_U

Logs of these tests performed
MENTAIKO - 2024.12.2.1188 - 2024-12-04 02_29_51.log

@shiftyscales shiftyscales added triaged This issue has been assessed and removed needs more information More information is requested about this issue. labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended. triaged This issue has been assessed
Projects
None yet
Development

No branches or pull requests

3 participants