Yeah... Not sure what happened, now works... Some times you should RTFM...works fine in vr for me..
Yeah... Not sure what happened, now works... Some times you should RTFM...works fine in vr for me..
Hey, you did actually end up putting tire temp/pressure and wear together after all!Hey, I've updated Sidekick with a few new features and bug fixes:
It's fine on my system...Neat app. However, about the speed polling rate, is there any way to make it smooth like the default essensials app? In regards to the speedometer, it's skipping numbers and reacting very slowly.
Strange. I have both the Sidekick and Essentials enabled to compare. It's reacting, just updating very slowly (more noticeable the quicker acceleration). Essentials is perfectly butter smooth.It's fine on my system...
No idea what could cause the lag.
#Fetch data 10 times per second
if timer2 > 0.1:
focusedCarValue = ac.getFocusedCar()
speedValueKPH = ac.getCarState(focusedCarValue, acsys.CS.SpeedKMH)
speedValueMPH = ac.getCarState(focusedCarValue, acsys.CS.SpeedMPH)
I beg to differ. I find 10 updates per second to be very laggy and sluggish. It's equivalent to an input lag of 100 ms.Buttersmooth here too. and 10 updates per second is more than enough.
If you really want to change the update rate for the speedo you need to change the timer value in two places: the one you listed above is where it fetches the data. If you find the next section further down where it looks at timer2 (and resets it to zero), that'll be the block of code where it displays the data.I tried changing the value to 0.01, doesn't improve things (anyone know how to get it to increase the update rate?). I'm not familiar with Phyton or really programming in general but to me this change made sense... Shouldn't it fix the issue? A 10 Hz update rate is really slow.
You sir, are a hero!If you really want to change the update rate for the speedo you need to change the timer value in two places: the one you listed above is where it fetches the data. If you find the next section further down where it looks at timer2 (and resets it to zero), that'll be the block of code where it displays the data.
#Display/calculate 10 times per second
if timer2 > 0.001:
timer2 = 0
Glad you've got it working to your satisfactionChanged that value to 0.001 and it's now truly smooth as butter. Gonna try 0.01 to see if that's smooth too.
THANKS!
Update: I did try with 0.01. I would call it smooth. Actually butter smooth.
However, it did not pick up on the small changes in acceleration and decelleration so I'm gonna keep it at 0.001.
Would not be needed for most, I agree, but I want a true 1:1 replication (that is not realistic because in real life it's calculating it from wheel speed sensors and various factors will create inaccuracies, but that's what the cluster display (cockpit view) is for. The modded car I tested fetched the wheel speed data instead of air speed data).
Honestly, I could probably do with 0.005 or maybe higher, but unless I see it affecting performance in any meaningful way I don't care about it being overkill. Then at least it's not underkill.
Well, it all depends when the fetch is done in relation to when the frame is rendered. Rendering of frames aren't done perfectly every X ms, it varies a lot. A very high polling rate will ensure that the fetch is done as close to the point of the frame creation as possible. I am making some assumptions of how it works, though. It might be possible they can syncronize it with the frames, but I'd guess it isn't since the polling rate value seem static to me.Glad you've got it working to your satisfaction
Be aware though that any time values smaller than the refresh period are pointless. E.g. if you run your display at 60 Hz, there's no value in having it smaller than about 16 ms
Agreed.Well, it all depends when the fetch is done in relation to when the frame is rendered.
...but you haven't ensured a high polling rate. You are totally at the mercy of the frequency to the calls to acUpdate(), and if I recall correctly, it's only called one per video frame (Of course you can confirm that by printing the values of deltaT.)A very high polling rate will ensure that the fetch is done as close to the point of the frame creation as possible.
where is download?Hey, I've updated Sidekick with a few new features and bug fixes:
[mod edit: no links to external downloads]
Yes, and when trying to help people via PM, links are messed up too and useless. While I can partly understand this, I also wonder if this isn't going too far... It's not like paymods are shared...RD keeps deleting the link..