Night FPS Performance Improvement Fix 2.2
7.953
85
7.953
85
- Installation (This script requires ScriptHookV and JM36 Lua Plugin) -
[Required] Put "NightPerformanceFix.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
[Optional] Put "NightPerformanceFix_ExperimentalSupplemental.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
- Description and Discussion -
This mod/script aims to increase the night time fps performance; on average, the improvement seems to be around 20fps for most, and sometimes even more depending upon your location and whatnot.
Typically, during the day time, with clear weather, you will typically have the highest fps; at night time however, with clear weather, your fps will typically be at half of your day time fps (if you are lucky enough to not have it instead fall to a quarter of your day time fps that is). This problem occurs within the vanilla game, with no mods or scripts. This mod/script improves that dreadfully lowered fps on average by around 20 fps which is better, especially if yous fps is 20 or 30 or anything low like that.
It seems to be a thing that affects certain system build configurations, mainly primarily what CPU you have (and not so much GPU), it's a weird/strange bug though for sure. AMD Ryzen CPUs (except 3600) seem to be the most impacted by this, alongside some/few Intel CPUs, and maybe even older AMD CPUs as well.
- Files -
-- "NightPerformanceFix.lua" - the main and original (and required) night time fps improvement/enhancement/fix script.
-- "NightPerformanceFix_ExperimentalSupplemental.lua" - a new optional experimental supplemental fps improvement/enhancement/fix script for both day and night times. Use only if you really wish/need to try and squeeze out even more fps for some reason; this may/can/will cause some occasional noticeable graphical artifacts out in the distance.
- Changelog -
v2.2
-- Fixed an oversight with v2.1 which prevented it from doing it's job.
v2.1
-- Support new areas from game update (Game Build 2944 - San Andreas Mercenaries)
v2.0
-- Improved internal logic and algorithms in both "NightPerformanceFix.lua" and "NightPerformanceFix_ExperimentalSupplemental.lua" to improve performance.
-- Support more areas (the entire map).
v1.1
-- Slight adjustment to "NightPerformanceFix.lua" to improve performance.
-- New optional experimental supplemental extra that can potentially provide some additional FPS performance improvements and enhancements during both the night and day times ("NightPerformanceFix_ExperimentalSupplemental.lua"), see "Files" section.
- FAQ -
No, you cannot use this for FiveM; it will not work, it is not supported, it is not designed for it. Yes, I do have a version/variant for FiveM, however I have no plans on releasing that anytime soon (outside of my own FiveM server that is, which runs it).
(^Edit 2023.06.25) - The FiveM version/variant (containing FiveM-specific additions/enhancements) has been released over at https://jaymontana36.tebex.io/package/5761894
When testing and comparing, you should use static variables, ie try to keep the time and weather the same (freeze it), as well as character and camera positions, maps, etc. for better accuracy.
This may or may not function correctly with any other performance/fps fix mods or scripts.
Any bugs or problems or issues or etc.? Tag me with some details in the comments or contact me via Discord.
[Required] Put "NightPerformanceFix.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
[Optional] Put "NightPerformanceFix_ExperimentalSupplemental.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
- Description and Discussion -
This mod/script aims to increase the night time fps performance; on average, the improvement seems to be around 20fps for most, and sometimes even more depending upon your location and whatnot.
Typically, during the day time, with clear weather, you will typically have the highest fps; at night time however, with clear weather, your fps will typically be at half of your day time fps (if you are lucky enough to not have it instead fall to a quarter of your day time fps that is). This problem occurs within the vanilla game, with no mods or scripts. This mod/script improves that dreadfully lowered fps on average by around 20 fps which is better, especially if yous fps is 20 or 30 or anything low like that.
It seems to be a thing that affects certain system build configurations, mainly primarily what CPU you have (and not so much GPU), it's a weird/strange bug though for sure. AMD Ryzen CPUs (except 3600) seem to be the most impacted by this, alongside some/few Intel CPUs, and maybe even older AMD CPUs as well.
- Files -
-- "NightPerformanceFix.lua" - the main and original (and required) night time fps improvement/enhancement/fix script.
-- "NightPerformanceFix_ExperimentalSupplemental.lua" - a new optional experimental supplemental fps improvement/enhancement/fix script for both day and night times. Use only if you really wish/need to try and squeeze out even more fps for some reason; this may/can/will cause some occasional noticeable graphical artifacts out in the distance.
- Changelog -
v2.2
-- Fixed an oversight with v2.1 which prevented it from doing it's job.
v2.1
-- Support new areas from game update (Game Build 2944 - San Andreas Mercenaries)
v2.0
-- Improved internal logic and algorithms in both "NightPerformanceFix.lua" and "NightPerformanceFix_ExperimentalSupplemental.lua" to improve performance.
-- Support more areas (the entire map).
v1.1
-- Slight adjustment to "NightPerformanceFix.lua" to improve performance.
-- New optional experimental supplemental extra that can potentially provide some additional FPS performance improvements and enhancements during both the night and day times ("NightPerformanceFix_ExperimentalSupplemental.lua"), see "Files" section.
- FAQ -
No, you cannot use this for FiveM; it will not work, it is not supported, it is not designed for it. Yes, I do have a version/variant for FiveM, however I have no plans on releasing that anytime soon (outside of my own FiveM server that is, which runs it).
(^Edit 2023.06.25) - The FiveM version/variant (containing FiveM-specific additions/enhancements) has been released over at https://jaymontana36.tebex.io/package/5761894
When testing and comparing, you should use static variables, ie try to keep the time and weather the same (freeze it), as well as character and camera positions, maps, etc. for better accuracy.
This may or may not function correctly with any other performance/fps fix mods or scripts.
Any bugs or problems or issues or etc.? Tag me with some details in the comments or contact me via Discord.
Poprvé nahráno: 14. duben 2023
Poslední aktulizace: 23. červen 2023
Last Downloaded: před 35 minutami
108 Komentářů
More mods by JayMontana36:
- Installation (This script requires ScriptHookV and JM36 Lua Plugin) -
[Required] Put "NightPerformanceFix.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
[Optional] Put "NightPerformanceFix_ExperimentalSupplemental.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
- Description and Discussion -
This mod/script aims to increase the night time fps performance; on average, the improvement seems to be around 20fps for most, and sometimes even more depending upon your location and whatnot.
Typically, during the day time, with clear weather, you will typically have the highest fps; at night time however, with clear weather, your fps will typically be at half of your day time fps (if you are lucky enough to not have it instead fall to a quarter of your day time fps that is). This problem occurs within the vanilla game, with no mods or scripts. This mod/script improves that dreadfully lowered fps on average by around 20 fps which is better, especially if yous fps is 20 or 30 or anything low like that.
It seems to be a thing that affects certain system build configurations, mainly primarily what CPU you have (and not so much GPU), it's a weird/strange bug though for sure. AMD Ryzen CPUs (except 3600) seem to be the most impacted by this, alongside some/few Intel CPUs, and maybe even older AMD CPUs as well.
- Files -
-- "NightPerformanceFix.lua" - the main and original (and required) night time fps improvement/enhancement/fix script.
-- "NightPerformanceFix_ExperimentalSupplemental.lua" - a new optional experimental supplemental fps improvement/enhancement/fix script for both day and night times. Use only if you really wish/need to try and squeeze out even more fps for some reason; this may/can/will cause some occasional noticeable graphical artifacts out in the distance.
- Changelog -
v2.2
-- Fixed an oversight with v2.1 which prevented it from doing it's job.
v2.1
-- Support new areas from game update (Game Build 2944 - San Andreas Mercenaries)
v2.0
-- Improved internal logic and algorithms in both "NightPerformanceFix.lua" and "NightPerformanceFix_ExperimentalSupplemental.lua" to improve performance.
-- Support more areas (the entire map).
v1.1
-- Slight adjustment to "NightPerformanceFix.lua" to improve performance.
-- New optional experimental supplemental extra that can potentially provide some additional FPS performance improvements and enhancements during both the night and day times ("NightPerformanceFix_ExperimentalSupplemental.lua"), see "Files" section.
- FAQ -
No, you cannot use this for FiveM; it will not work, it is not supported, it is not designed for it. Yes, I do have a version/variant for FiveM, however I have no plans on releasing that anytime soon (outside of my own FiveM server that is, which runs it).
(^Edit 2023.06.25) - The FiveM version/variant (containing FiveM-specific additions/enhancements) has been released over at https://jaymontana36.tebex.io/package/5761894
When testing and comparing, you should use static variables, ie try to keep the time and weather the same (freeze it), as well as character and camera positions, maps, etc. for better accuracy.
This may or may not function correctly with any other performance/fps fix mods or scripts.
Any bugs or problems or issues or etc.? Tag me with some details in the comments or contact me via Discord.
[Required] Put "NightPerformanceFix.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
[Optional] Put "NightPerformanceFix_ExperimentalSupplemental.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
- Description and Discussion -
This mod/script aims to increase the night time fps performance; on average, the improvement seems to be around 20fps for most, and sometimes even more depending upon your location and whatnot.
Typically, during the day time, with clear weather, you will typically have the highest fps; at night time however, with clear weather, your fps will typically be at half of your day time fps (if you are lucky enough to not have it instead fall to a quarter of your day time fps that is). This problem occurs within the vanilla game, with no mods or scripts. This mod/script improves that dreadfully lowered fps on average by around 20 fps which is better, especially if yous fps is 20 or 30 or anything low like that.
It seems to be a thing that affects certain system build configurations, mainly primarily what CPU you have (and not so much GPU), it's a weird/strange bug though for sure. AMD Ryzen CPUs (except 3600) seem to be the most impacted by this, alongside some/few Intel CPUs, and maybe even older AMD CPUs as well.
- Files -
-- "NightPerformanceFix.lua" - the main and original (and required) night time fps improvement/enhancement/fix script.
-- "NightPerformanceFix_ExperimentalSupplemental.lua" - a new optional experimental supplemental fps improvement/enhancement/fix script for both day and night times. Use only if you really wish/need to try and squeeze out even more fps for some reason; this may/can/will cause some occasional noticeable graphical artifacts out in the distance.
- Changelog -
v2.2
-- Fixed an oversight with v2.1 which prevented it from doing it's job.
v2.1
-- Support new areas from game update (Game Build 2944 - San Andreas Mercenaries)
v2.0
-- Improved internal logic and algorithms in both "NightPerformanceFix.lua" and "NightPerformanceFix_ExperimentalSupplemental.lua" to improve performance.
-- Support more areas (the entire map).
v1.1
-- Slight adjustment to "NightPerformanceFix.lua" to improve performance.
-- New optional experimental supplemental extra that can potentially provide some additional FPS performance improvements and enhancements during both the night and day times ("NightPerformanceFix_ExperimentalSupplemental.lua"), see "Files" section.
- FAQ -
No, you cannot use this for FiveM; it will not work, it is not supported, it is not designed for it. Yes, I do have a version/variant for FiveM, however I have no plans on releasing that anytime soon (outside of my own FiveM server that is, which runs it).
(^Edit 2023.06.25) - The FiveM version/variant (containing FiveM-specific additions/enhancements) has been released over at https://jaymontana36.tebex.io/package/5761894
When testing and comparing, you should use static variables, ie try to keep the time and weather the same (freeze it), as well as character and camera positions, maps, etc. for better accuracy.
This may or may not function correctly with any other performance/fps fix mods or scripts.
Any bugs or problems or issues or etc.? Tag me with some details in the comments or contact me via Discord.
Poprvé nahráno: 14. duben 2023
Poslední aktulizace: 23. červen 2023
Last Downloaded: před 35 minutami
@Wolfx101 Well this doesn't attempt to manage or interfere with other scripts (I also wouldn't do that considering there are a lot of things in the game that require precise per frame based timings to reliably use), it also won't help against any CPU bound/heavy script mods; it's pretty much designed specifically for the vanilla game's performance issue/bug that occurs and is noticeable on certain systems/configurations primarily when it comes to the city and night time (also expanded to include some other areas and day time as well with the supplemental).
GTA FSR likewise will not help or provide any improvements for CPU bound/heavy script mods, the only real true "fix" for your/that scenario is for the developers to (open up their minds and learn more about efficiency and optimization and become creative and) write better code that is more optimized and efficient to run, which realistically just does not happen very often anymore anywhere, even in billion dollar game studios and companies with plenty of resources; these days it's just slap together whatever enough for it to run "good enough" and then call it complete with no thoughts of "how can I revise and improve this code to run quicker or be more efficient and optimal" whatsoever, I've personally met very few people who actually care about any of that stuff, the majority of the people I met don't care about that stuff and will even tell you that it's pointless to do because modern systems have all these resources and blah blah, and I say back in response to them "well that is the reason why my implementations can (and do) have more features and functionality than your implementations and yet at the same time can still very fairly easily run circles around yours despite being a more complex/complicated implementation". I really truly hate that efficiency and optimization isn't a priority anymore. It's really a shame when you take a look at this game running on the hardware of the PS3 and Xbox 360 for example, and then you take a look at this game running on the hardware of modern PCs (in 2023, 10 years since the first ever release in 2013, with no outside/unofficial modifications made) and it hardly runs any better at all despite being very old where it really should have matured a lot with all of these updates over the years, and but instead of running better or equal it runs worse; I dare say that this game ran a lot better in 2015 on PC (older less efficient hardware) than it does in 2023 (modern more efficient hardware), and that's just a shame, especially since hardly anybody who develops thinks this is a problem besides me and very few others.
Apologies for this long rant of a reply/response, but I kinda just had to get it out.
@JayMontana36 Wow tldr, I'm not being rude just saying lua sometimes works for me and sometimes doesn't, would've been nice if I had the option but you clearly took offence at what I was saying...
@SLY95ZER It's a combination of the way that you said what you said, in conjunction with an abundance of people who are either misinformed (and spreading misinformation) or hating for no real legitimate reasons, it's okay though (just dreadful and tiring for me to always constantly have to explain).
What "Lua" are you using? Like, what Lua plugin/environment mod (and version) are you using, and what Lua script mods (optional) are you using? I've never had any problem or issue where things randomly work or don't work.
If you use a Lua Plugin mod from this site and you still have/use an "addins" folder, then yeah your statement would be correct/accurate (though only in regards to that particular Lua Plugin mod variant), and the problems that you "experience with Lua" would be because you have not migrated away to the newer Lua Plugin mod variant.
@JayMontana36 Then I apologise if I came off as rude, maybe I did what you'd said and put the lua into that directory.
@SLY95ZER No worries it's fine, but yeah I don't create anything for that "legacy" Lua Plugin mod (which uses the "addins" folder, and pretty much nothing that I currently develop will work with it either); I did not add any pre-emptive checks or anything for that into this so you won't get any descriptive errors when trying to use that with this (and it's been a long time since I've done that), so it'd error and not work/function at all if you tried using this with that.
The solution to things not working would be to upgrade/migrate from that legacy/old Lua Plugin over to JM36 Lua Plugin (Lua Plugin for Script Hook V Reloaded), as it solves pretty much every caveat and issue that could be solved, alongside improvements to literally everything that could be improved (it's been rewritten completely from scratch where able).
@JayMontana36 thanks for the answer, but still I hope that somehow it will be possible to add a fix, it really helped many ryzen players to play online on servers
Work greats,thx !!
@daniago No problem!
@2fast4you89 Hey so I've finally just made the FiveM version/variant available and released it over at https://jaymontana36.tebex.io/package/5761894 for the public, based upon this latest current version (2.2).
@JayMontana36
Thank you very much for your job! I will try ! Thank you so much!
why is this obfuscated
You mean (pre)compiled, exactly like all of the DLL and ASi files that are on this site?
its a lua file, not a dll or asi. your other lua mods are also raw code (vehicle theft levels for example)
Yep here we go yet again with the typical bs "because it's this language and not that language" type of discrimination.
And yeah sure, I may have decided to release Lua (script) files in source form that need to be interpreted then compiled then executed (instead of just simply be executed), especially earlier on in the cycle when my focus was more about trying to revive Lua in the singleplayer modding community as a viable and faster and easier alternative to C++ (ASI) and C# (DLL/CS), giving some ideas and releasing some simple basic "example" type of scripts like those (as well as some minimalist ports of FiveM Lua scripts) to showcase that, but I no longer care about any of that, and for this script in particular, it was never designed as such nor was it designed with such in mind, especially as I never originally intended to release it outside of my own testing environments or my own FiveM server. There is quite a bit of backstory to both the development and decisions (and release), none of which I will be discussing.
At the end of the day, the majority of the script developers on this site release (pre)compiled script binaries in the form of an ASI or a DLL file, with the majority of them also not including nor providing any of the source code for any of their releases; why is it suddenly a problem (why are you complaining about me doing the exact same thing as everyone else) when I follow suit and do the exact same thing as everyone else here, "just because it's this language and not that language" type of discrimination when it is literally the exact same thing no matter which way you want to look at it?
There is no response or answer that won't be either ridiculous or discriminatory, so that is the end of this discussion.
@JayMontana36 Would this also work for Nvidia cards or no?
@SnakeSlippers Yes, it runs on all graphics cards regardless of manufacturer.
I've been struggling with this for years. Game runs flawlessly during the day with everything cranked up but at night, particularly during sunsets, my framerate tanks to the high 40's and low 50's and not even 0.500 frame scaling fixes this. I'm running a Ryzen 5 2600 and a GTX 1660 super. Haven't gotten around to testing it but would this mod effectively solve the issue?
Yeah, played around for a bit after installing the mod and after countless hours of searching and testing various different solutions myself, this mod and this mod only was able to solve those awful frame drops at night/during sunsets even with the settings cranked up. Smooth 60 FPS across the board now, even when using the VisualV graphics mod. Out of curiosity, what exactly does this mod do to fix the bug? Is this a case of Rockstar incompetence? And finally, does the regular version impact visual quality in any way?
can u atleast say which natives u used
It removes my amazing bokeh mod because it removes those lights on grounds so no way im using it. If u really need performance learn how to optimize settings that dont change much
It is more so a matter of managing several of the things that are being rendered at any particular given moment by the game in an efficient manner, since the game itself does not do this at all (yes, this can very well be called/considered Rockstar incompetence, because it kind of is). Overall, you shouldn't really notice any negative impacts when it comes to visual quality, when it comes to the vanilla game at least (which is what this was first and foremost designed for, even though it just so happens to work really well according to others with graphics mods and such). The tradeoff here is, certain (very few) visual/graphical mods may not look as "good" or whatever as they "should" (depending upon your tastes or whatever if you really care a whole lot about that, even though it really seemingly overall does not affect or impact the vast majority of the graphics/visual mods users who are using this); this doesn't touch any of your graphical/graphics settings at all (meaning you can run the highest level of graphics with this and it will still do it's job and work well), it more so has to do with unloading or "unrendering" distant things that you either can't see or can't really see much, kind of how MLAM and VLAM and my other LAMs work. At the expense of a little bit of math some good calculations/guessing/heuristics, and in some rare scenarios certain visual/graphical aspects, you achieve a higher or more stable framerate overall, and I may even go forward/through with my next experimental that can take things to even higher levels (potentially with options similar to what the LAMs have to offer). I don't promise or guarantee that I'll release that or offer anything new though, just that I'll try to keep it up to date with the latest versions of the game asap (possibly same day).