Closed SHWotever closed 1 year ago
Hello !
Just watching at the code, and I see that most data are standard game data : IE :
pluginManager.GetPropertyValue("DataCorePlugin.GameData.LastLapTime") ?? new TimeSpan()
Everything starting with DataCorePlugin.GameData can be replaced directly by direct value access :
DataCorePlugin.GameData
pluginManager.LastData?.NewData?.LastLapTime ?? new TimeSpan()
It will skip you lot of overhead and save some significant CPU load :)
Thanks! That will definitely help
Hello !
Just watching at the code, and I see that most data are standard game data : IE :
Everything starting with
DataCorePlugin.GameData
can be replaced directly by direct value access :It will skip you lot of overhead and save some significant CPU load :)