f3d-app / f3d

Fast and minimalist 3D viewer.
https://f3d.app
BSD 3-Clause "New" or "Revised" License
2.83k stars 204 forks source link

On Windows, F3D is very laggy when resizing the window IF the cheatsheet is shown #1013

Open mwestphal opened 1 year ago

mwestphal commented 1 year ago

Describe the bug On Windows, F3D is very laggy when resizing the window IF the cheatsheet is shown

To Reproduce Steps to reproduce the behavior:

  1. Open the file using f3d --dry-run example.glb
  2. Press H to show cheatsheet
  3. Resize window using the edge of the window
  4. Very laggy

Expected behavior Showing the cheatsheet should not impact the performance of F3D during resize

System Information:

Meakk commented 1 year ago

Just tried, cannot see any difference with or without the cheatsheet.

Meakk commented 1 year ago

Actually, I reproduce. It happens when the font inside the cheatsheet (or the metadata) window is changed because of the resizing.

mwestphal commented 1 year ago

Then it should happen with the filename too ?

jspanchu commented 12 months ago

@mwestphal I'm noticing this even on macOS. When the cheatsheet is shown, resizing is slow. Also, toggling any feature takes too much time. Ex: try turning on/off the grid or increase light intensity. With the cheatsheet, it takes about 1-2 seconds for the feature to actually get toggled. Maybe something unintendedly introduces a delay in the interactor event processing loop?

mwestphal commented 12 months ago

Sounds like a different issue ?

jspanchu commented 11 months ago

unsure, Could it be that an improper configuration of the interactor (event observers, etc) causes similar behavior on both mac and windows?

mwestphal commented 10 months ago

I've seen similar things on Linux as well. Lets loop back on it once we have #1077