opentrack icon indicating copy to clipboard operation
opentrack copied to clipboard

Track stuttering / camera FPS oscillating

Open Limper1111 opened this issue 4 years ago • 23 comments

Hi, yesterday when playing DCS and using Opentrack, this problem developed during game and lasts to this moment. The problem is that my cockpit view started to stutter, move unnaturally. I recorded the video, so you can see what is happening exactly. Tried unplugging and replugging the joystick, pedals, camera, but nothing helped. The thing I noticed before playing was the sound when you unplug the USB, but everything looked fine, the problem developed during playing. Camera PS3 Eye, Windows 10. Thanks in advance for help. https://youtu.be/NQf6K516Eog

Limper1111 avatar Nov 07 '20 14:11 Limper1111

Hi, I have the exact same issue since yesterday too: FPS of the PS3 camera is oscillating and the acelera filter becomes crazy. Maybe a Windows update broke something?

I've noticed that another filter (Hamilton? Forgot the name) was not affected

plule avatar Nov 07 '20 22:11 plule

Hi, I partially solved it. In PS3 CL eye test I found this settings, set it to 75 fps, and ticked the box. image image

Limper1111 avatar Nov 07 '20 22:11 Limper1111

I have the same problem too, since yesterday. Other filters are not as bad as Accela, but they all stutter a bit.

I've also found something in the Point Tracker 1.1 settings: Camera FPS

The frame rate of the camera itself seems to stutter. I don't know if that was like this before.

Symerizer avatar Nov 08 '20 07:11 Symerizer

Same issue. Limper1111 fix didn't work for me.

Cosmo-Cave avatar Nov 08 '20 14:11 Cosmo-Cave

plule's fix worked for me. I didn't have the Hamilton filter at first because I hadn't updated to the newest version of Opentrack.

Cosmo-Cave avatar Nov 08 '20 18:11 Cosmo-Cave

The "Hamilton filter" can be added to Opentrack-2.3.11. Just copy opentrack-filter-hamilton.dll to the "modules" folder. https://sites.google.com/site/diyheadtracking/home/opentrack/opentrack-hamilton-filter https://sites.google.com/site/diyheadtracking/home/opentrack/opentrack-download/opentrack-filter-hamilton.dll

GO63-samara avatar Nov 08 '20 21:11 GO63-samara

Can you see if it's any better with the open driver?

sthalik avatar Nov 10 '20 22:11 sthalik

I have the fluctuating fps issue with both the open driver and the other, and no matter what’s in the CLEye configuration. Actually, I even see it with another unrelated logitech webcam. Whatever the configuration is the displayed fps always fluctuate between 0 and the selected fps.

I could not find any relevant change on Windows, the only one matching the timeline is some antivirus definition update that is basically done every day...

plule avatar Nov 11 '20 07:11 plule

Hi, my Opentrack is now without issues. As I mentioned before the thing that repaired it was setting FPS in all settings at 75 (in CL eye test and in Opentrack). Also I removed the IR filter from PS3 camera so the tracking points are now a lot bigger. FPS are almost stable at 75 now.

Limper1111 avatar Nov 11 '20 09:11 Limper1111

On my side I went berserk, removed all possibly related drivers, including usb stuff, and after reinstallation it’s also back to steady 75 Hz. I’m trying to mess around in Cl-eye test and opentrack to recreate the issue with no luck. So really not sure what happened, but it works too now.

plule avatar Nov 11 '20 09:11 plule

I also had the FPS of a PS3Eye camera fluctuate between single digit fps and 75 leading to stuttering. Similar to video by Limper1111 above. I noticed the fps count in Pointtracker1.1 settings page. Tried installing latest Opentrack (2.3.12) but that made no difference, camera fps still all over the place. And of course, if you have 2 fps it will only read your head position twice in a second so stuttering and view jumping must be coming from that.

Only thing that worked was to reinstall camera drivers, I used the PS3 driver package mentioned here at Delanclip where I bought my tracking system: https://delanengineering.com/manual/. Reinstalled, restarted and now have stable fps with Accela filter.

JBoysen1 avatar Nov 13 '20 17:11 JBoysen1

Also having this problem with my PS3EYE. Soon as I start CL-EYE Test, or start tracking in Opentrack, not only does my fps stutter similarly as described above, but it also causes my mouse and keyboard to lag. I dont get the sound or notification of a usb device disconnecting or reconnecting but that's what it appears as. I tried uninstalling all my usb contollers and drivers, etc, fresh reinstall, but that didn't do the trick. Kind of at a loss here. I'm on the most current version of windows 20H2, but I think this started a day ago after a security update? It'd been working fine up until Jan 1st. Though I uninstalled any recent windows updates and had no luck there either.

Gilbo26 avatar Jan 03 '21 03:01 Gilbo26

It just reappeared today for me too, it was OK 2-3 days ago.

Windows 10 1909, the only update listed is the security antivirus one... Same symptoms as before, FPS is fluctuating in opentrack whatever the driver is, breaking the accelera filter.

I don’t get anything strange on mouse or keyboard though.

edit: aaaand it went away after reboot, sorry @Gilbo26, no idea of the fix...

plule avatar Jan 03 '21 09:01 plule

@plule , I might try and fresh install 1909 since I know it was working on that. Its such a weird issue, and it has to be driver or usb related but something must be conflicting. I haven't yet ruled out the camera itself yet though, so I'll try it on another pc and see if I have issues or not. Don't think thats the problem, though i'm not sure of the behavior of a dying ps3 eye.

On another note, I thought it may be the difference between usb 3.0 and usb 2.0 ports, as I only have 3.0 ports, but since it had been working for the longest time on 3.0 ports I'm led to believe that for me thats not the problem. Plus I tested what I believe to be a 2.0 extension cable, which should have by-passed the usb 3.0 wires/leads rendering the port a 2.0 port, but that didn't fix it either. I'll update when I try another pc, but if it isn't the camera itself, my best guess is a windows update is causing some odd driver confliction or usb issue. From there i'll do a fresh install back at win 10 1909 and cross my fingers.

UPDATE: So I tied a different PC, worked fine there, that pc was on Win 10 1909. So I rolled back my main rig from 20H2 to 1909 and reinstalled the driver for the ps3 eye, aaaand sure enough, it worked fine. BUT, after several hours of it working great, I restarted my pc, and sure enough, on win 10 1909 it is doing the same thing again, stuttering and keeping terrible frames, and also doing the weird thing where it messes with my usb devices. I turned windows updates off soon as I rolled back to 1909, so nothing should have installed, nor does it show any thing installed during that restart. So back to being at a loss. But I assume something in the background is either installing or activating that kills the driver or causes the usb port to be overloaded.

Best guess is still something with windows updates since opentrack and cl-eye test have the same issue in 20H2 and apparently the last version of 1909. Will update if I find a more specific fix than rolling back to the initial 1909 release.

****UPDATE: So after trying everything above, I confirmed that opentrack and cl-eye test are just as stuttery on 20H2 on another pc. I then rolled my main PC back to 1909, and after 2 restarts opentrack and cl-eye test both worked fine. So 20H2 is what is breaking the driver, though 1909 occasionally has some stuttering but a restart fixes it if it does happen. Paused my windows updates for 3 months as a result lol.

Gilbo26 avatar Jan 03 '21 23:01 Gilbo26

I'm having the same problem. I also plotted the yaw and dt for the Accela filter and it looks quite nasty: image

Overall the application responds much slower then it used to, taking dozens of seconds to open from the desktop and it hangs when I press the start button...

Why do all nice things need to be ruined by a windows update...

kavdborr avatar Jan 12 '21 16:01 kavdborr

@kavdborr I recreated the issue on a third PC by updating to all the latest windows updates under 20H2, same issue happened with all applications using the ps3 eye camera/driver. After rolling back to 1909, and 1 restart later it was fixed. So its 100% something in the windows update. All we can do is wait for the next update and hope that whatever is conflicting is fixed. Most likely something to do with compatibility of older windows (7 or 8) drivers.

Gilbo26 avatar Jan 13 '21 02:01 Gilbo26

@Gilbo26 The problem was fixed with the latest windows updates for me. Now I'm on version 20H2 with KB 4598242.

kavdborr avatar Jan 15 '21 14:01 kavdborr

Same exact issues. Limper1111's fix didn't work. Symerizer's footage of the frame rate going wild also happens. It began out of nowhere while I was playing American Truck Simulator and tracking suddenly got very uncomfortably jittery and I couldn't fix it since.

gakun17 avatar Jan 19 '21 04:01 gakun17

@kavdborr Issue as reappeared on 20H2 19042.1052. Unfortunately I can no longer roll back to a previous version. Its a sad day. Will report back if I find anything new fix wise

Gilbo26 avatar Jun 30 '21 03:06 Gilbo26

Interesting. What happens if you set opentrack to realtime priority?

sthalik avatar Jul 01 '21 12:07 sthalik

As a hypothesis. Track stuttering appears only for some users. Perhaps track stuttering is associated with an FFB joystick? There are certain problems with Direct Input and FFB. Here is about this and the solution to replace the dll (in Russian): https://forum.il2sturmovik.ru/topic/14042-ил2-битва-за-форс-фидбек-ms-ffb2trackir/

GO63-samara avatar Jul 02 '21 21:07 GO63-samara

Using 20H2 and it still happens... Only fix is restarting the computer, but that can take a long time in my case.

gakun17 avatar Oct 09 '21 00:10 gakun17

Hey so i had the exact same Problem right now! Yesterday i was playing rts2 with my old xbox360 for PCs controller and tracking went all fine. Today i turned my pc on, startet opentrack and bleh, stuttering 2, 22, 75, 2, 22, 75, 2,... fps. Remembered that i had a problem once with my controller plugged in so i unplugged it and started opentrack again, bleh. But guess what, very smart me thought maybe restarting without the controler helps? And voila, everything runs smooth again! Even with my controller pluged in after turning my PC on ;)

I hope that helps someone! I´m just writing it because i already had a github acc :D

Manateekida avatar Aug 22 '22 17:08 Manateekida