Cubic Slowdown #538

Open
starvald opened this Issue Apr 14, 2017 · 7 comments

Comments

Projects
None yet
3 participants
@starvald

The fps of cubic begins slow down after about 15 minutes, mousing over cubic you can see the interface stutter.
i have noticed that if i leave a menu column open the fps goes back to normal.

__GL_SYNC_TO_VBLANK=0 /usr/bin/CubicSDR
i have disable vsync or the fps is terrible to begin with.
using nvidia 378.13 with Mate & Compiz on Antergos (arch based).

any possible fixes?

@cjcliffe

This comment has been minimized.

Show comment
Hide comment
@cjcliffe

cjcliffe Apr 20, 2017

Owner

@starvald I always have to open the Nvidia panel and disable then re-enable vertical sync to make it work properly for CubicSDR and others; then it caps to the refresh instead of tearing up the CPU with redundant frames -- you may have a similar issue.

Note that if CubicSDR is unfocused it will enable the "Reduce CPU usage" mode to free up graphics resources for other applications.

Owner

cjcliffe commented Apr 20, 2017

@starvald I always have to open the Nvidia panel and disable then re-enable vertical sync to make it work properly for CubicSDR and others; then it caps to the refresh instead of tearing up the CPU with redundant frames -- you may have a similar issue.

Note that if CubicSDR is unfocused it will enable the "Reduce CPU usage" mode to free up graphics resources for other applications.

@cjcliffe cjcliffe added the question label Apr 20, 2017

@starvald

This comment has been minimized.

Show comment
Hide comment
@starvald

starvald Apr 22, 2017

i assume it's still a bug though?
from the roadmap "Resolve all driver/platform vertical sync issues"

i guess it will be fixed at some point.

i assume it's still a bug though?
from the roadmap "Resolve all driver/platform vertical sync issues"

i guess it will be fixed at some point.

@cjcliffe

This comment has been minimized.

Show comment
Hide comment
@cjcliffe

cjcliffe Apr 22, 2017

Owner

@starvald yup; it's mostly linux related as that seems to be where problems crop up; I'm assuming if I can resolve that issue on my nvidia card it will fix it elsewhere -- I spent a significant amount of time trying to pinpoint early on and wasn't sure it was even a widespread issue -- but will revisit it at some point.

If you can record some CPU/GPU resource information up to the point it starts to fail this might help us figure out if it's really the refresh issue or possibly some sort of leak / cumulative problem.

Owner

cjcliffe commented Apr 22, 2017

@starvald yup; it's mostly linux related as that seems to be where problems crop up; I'm assuming if I can resolve that issue on my nvidia card it will fix it elsewhere -- I spent a significant amount of time trying to pinpoint early on and wasn't sure it was even a widespread issue -- but will revisit it at some point.

If you can record some CPU/GPU resource information up to the point it starts to fail this might help us figure out if it's really the refresh issue or possibly some sort of leak / cumulative problem.

@ehidle

This comment has been minimized.

Show comment
Hide comment
@ehidle

ehidle May 21, 2017

You can wrap CubicSDR in commands that disable and then re-enable vsync. The sleep 5 allows Cubic to come up and go through OpenGL init before setting vsync back to 1:

#!/bin/bash
nvidia-settings --load-config-only --assign="SyncToVBlank=0"
CubicSDR&
sleep 5
nvidia-settings --load-config-only --assign="SyncToVBlank=1"

ehidle commented May 21, 2017

You can wrap CubicSDR in commands that disable and then re-enable vsync. The sleep 5 allows Cubic to come up and go through OpenGL init before setting vsync back to 1:

#!/bin/bash
nvidia-settings --load-config-only --assign="SyncToVBlank=0"
CubicSDR&
sleep 5
nvidia-settings --load-config-only --assign="SyncToVBlank=1"

@cjcliffe cjcliffe self-assigned this May 26, 2017

@cjcliffe

This comment has been minimized.

Show comment
Hide comment
@cjcliffe

cjcliffe May 26, 2017

Owner

@ehidle thanks; I'll have to try that myself and possibly add it to the manual as a tip for people experiencing the same issue

Owner

cjcliffe commented May 26, 2017

@ehidle thanks; I'll have to try that myself and possibly add it to the manual as a tip for people experiencing the same issue

@starvald

This comment has been minimized.

Show comment
Hide comment
@starvald

starvald May 26, 2017

Have been trying this during the week and it works, many thanks ehidle.

Have been trying this during the week and it works, many thanks ehidle.

@ehidle

This comment has been minimized.

Show comment
Hide comment
@ehidle

ehidle May 31, 2017

My pleasure. I have honestly had some mixed results as it seems at least possible that CubicSDR will go back to vsync at some point. But, I solved it permanently by ditching the nVidia card. Haha.

ehidle commented May 31, 2017

My pleasure. I have honestly had some mixed results as it seems at least possible that CubicSDR will go back to vsync at some point. But, I solved it permanently by ditching the nVidia card. Haha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment