cmm-21 / a2

Assignment 2 - Kinematic walking controller
5 stars 0 forks source link

fps too low #32

Closed boduan1 closed 3 years ago

boduan1 commented 3 years ago

I use linux, and I am already in released mode, but it fps is 7. Screenshot from 2021-03-28 22-54-22 Screenshot from 2021-03-28 22-54-54

eastskykang commented 3 years ago

I need more information. Does it drop from 30 fps as you play the app? Or is it already slow when you launch the app?

(Please be more specific. We cannot reproduce or figure out your problem only with the piece of information you provided here and remember you need some courtesy of your colleagues and TAs to get some advices or tips for your issue)

boduan1 commented 3 years ago

It doesn't drop, and I tried both command line (adding -DCMAKE_BUILD_TYPE=Release in cmake) and directly use VScode release mode, both gives 7 fps... Maybe it is just because my computer is slow?

eastskykang commented 3 years ago

I quickly tested your code, and could run your code in real-time on my laptop (macOS 2.4 GHz 8-Core Intel Core i9.) Could you post the system info of your PC? You can go to settings > details.

e.g. image

boduan1 commented 3 years ago

Thanks! I tried to move to another windows computer, and it works on windows, but the linux system is still slow... image

eastskykang commented 3 years ago

strange. I think your CPU is powerful enough to run the IK solver in real time.

Can you delete your build directory completely and configure (type configure in your VS code command palette) and build your project from the scratch? If it's still slow, might be related to graphics.

Hustwireless commented 3 years ago

Could it be that you are using fractional scale on a high resolution screen?

boduan1 commented 3 years ago

Oh! that might be the problem! the screen resolution is high...

eastskykang commented 3 years ago

If your FPS is too low as soon as you launch the app:

  1. double check if your CMake mode is Release
    • if you use a command line tool (Linux terminal), $ cmake -DCMAKE_BUILD_TYPE=Release ../ when you configure the project with cmake.
  2. try to lower your screen resolution