I use quite a lot of mods, but my PC is lower spec - With only 4 cores, but ill try it in safe mode with just your mod enabled. And I'll post a video. --- Post updated --- Here is a video of me driving on "Nardo Ring" Watch the trees and lines on the road for the slow down, as it wasn't doing it so badly when I recorded it.
I'm also encountering the problem Mr_Stickshift has. When I switch from the normal 'Driver' can to 'DriveAhead' the fps decrease with about 20-30% I can't spot any errors related to this mod either sadly :/ My specs: i7-7700K RTX 2060 Super 32GB DDR4 - 2400MHz
@Mr_StickShift @Jeppoer Thanks for your reports. I looked at the performance in more detail and noticed a 20% fps decrease at my side as well. After further investigation i noticed a 8240% execution time increase of the "luaGC" process. @meywue or @synsol Is that the garbage collector of lua?
Yeah, that is Garbage collector, my guess is that script uses something that is very expensive in GC or triggers some bug, idk really much of that side of things, but I know that some ways to code things can get surprisingly expensive and alternative way that appears more expensive at first glance can sometimes work better, programming for me is bit odd art. I did notice that I was getting only 56-58fps (happened only once, usually there is about 20% CPU load increase without drop below 60fps, but I have computing power to spare), CPU or GPU load was not maxed out, that was with ahead camera active, I think it was drive ahead, switching to driver cam fixed that. Also I need to read instructions more carefully as I have not noticed change to amount of camera movement with slider adjustment, I'm getting very little camera turn in, but as I haven't had time to read instructions properly it is my own fault
I might know why it uses so much more time to execute (or more precise, what an overhead gets generated which needs to clean up afterwards): Code: --lua\common\extensions.lua M.use = function(key) load(key) --log("W", logTag, "use(extName) is deprecated. Please use the following syntax: core_extensions.<modulename>.doSomething()") return rawget(M, key) end I used the "extension" module in my camera script in the render function. Every time I used "extension.use(...)" it triggers a not so light execution stack with a lot of different variables, tables. And these I think got collected from the GC. And that multiplyed by 5 Afterall it works now as performant as the build-in driver camera. @fufsgfen, you can test it and compare it with the old code if you want to understand more whats changed And thanks for your help on this.
It works perfectly now in terms of performance, lua is bit mystery to me, but slowly I learn bits here and there, chance to learn is always well appreciated!
Neo updated "LookAhead" Interior Camera with a new update entry: Fixed performance bug Read the rest of this update entry...
Neo updated "LookAhead" Interior Camera with a new update entry: Compatibility update for the new game version Read the rest of this update entry...