READ: Don't follow the installation instructions in this video. Unfortunately, a lot of people ran into issues following this video, issues I didn't have, so I didn't cover them. I've released an updated video with updated installation instructions on the channel. This video will cover how to install DXVK and how to solve all of the common problems you'll run into when trying to use DXVK. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jCVES4bx_O8.html ----- Want to support me? Consider joining the TJGM Patreon, which will give you benefits such as early access to videos, end of video shout-outs and VIP access on the TJGM Discord server! The support helps me make more videos and it's very much appreciated! patreon.com/TJGM ----- Enjoy GTA modding videos? Subscribe for more: ru-vid.com Socials: Discord - discord.gg/AsRsXzqT6s Facebook - facebook.com/people/TJGM/61553734157778/ Instagram - instagram.com/_tjgm_/ Steam Group - steamcommunity.com/groups/TJGM TikTok - www.tiktok.com/@tjgm_? Twitch - www.twitch.tv/tjgm X - twitter.com/TJGM_
DXVK does not always works as it should. For me the stuttering and lagging increased after installing DXVK. I do not know why. I have decent specs to run this game.
@@meowxgamingstuff Its normal for it to stutter when you launch the game, but it should ease out after a while. Try just using the d9.dll file from the x32.
Nope, doesn't mean anything. In benchmarks with DXVK i have exact 67 fps stable but in game 30-40. There is something very wrong with this game, period. Oh, right, i have a 6700 XT with i5-11400 and 16Gb of ram...
@@chronospeedster1916 1. You missed the point of what I said 2. My system is 6700 XT, 5600G with 16GB 3200 DDR4, game on an NVMe SSD and my performance is WAY better than yours at both 1440p and 4K with max settings. Either you didn't install DXVK correctly or something is severely wrong with your system. I average around 58 (capped to 60 WITH V-Sync) and the reason it isn't exactly 60 is because of those 1% lows from shader building in new areas. The game itself runs 60 as smooth as can be, and I'm sure would run 100+ @1440p. My point when running a few benchmarks isn't to show any actual numbers for performance, it's to build shader cache to minimize stutters that you get when loading new areas, which happens regardless of how powerful your system is. Don't be so quick to dismiss my advice and assume YOUR results are more definitive and free of issues.
@@chronospeedster1916 this game is horribly optimized for AMD gpus. What makes it even worse in GTA4 case is that AMD drivers are horribly optimized for OpenGL, Dx9 and wrap softwares that convert those to Vulkan (although AMD is well optimized for native Vulkan support in newer games)
I use DXVK in GTA IV since May 2020 and it has considerably improved my GTAIV experience. DXVK 2.0 update back in November 2022 reduced shader compilation stutter to almost zero.
Yeah, it works fine. Rivatuner is still the best in my opinion. Takes 3-5 minutes for Nvidia Control Panel to load for me when I click outside global setting to game profiles. I guess having 1400 games does that. AMD driver software used to be worst. A good 5-10 minutes to load hahah.
Rivatuner (which comes with MSI Afterburner) is the best when it comes to FPS limiter I think. And it works on basically on all GPUs. Not limited to NVidia or AMD.
Just as a heads up for AMD peeps, there is a frame rate limiter built into AMD's driver software too but I wouldn't recommend it. For whatever reason it doesn't even out frame times like RivaTuner does.
I recently switched to the DXVK Async version and it eliminated the stutters of the normal DXVK entirely. I recommend giving it a try as it really improved my gameplay experience
@@the_barbarian6689been a long time since I modded gta iv so take my words with a grain of salt, but DXVK theoretically shouldn't care about which game version you're running, as long as all GTA IV versions use the same rendering and graphics APIs, you should have the same compatibility as anyone else on any other game version. At least regarding DXVK alone, I do remember different versions of GTA IV generally performing different but I don't know which one is best these days :P
DUDE thank you so fucking much. you absolutely saved me. Was getting a range of literally like 40-100fps with wild ass jumps, now im getting a solid 110+ 🥹 2070s i7 9700k if anyone is curious
I played through GTA IV (including both expansions) on the Steam Deck and it’s a very similar experience; disable in-game v-sync and use the Deck’s built-in frame limiter, and the frame times are buttery-smooth. The Deck won’t hit 60 FPS 100% of the time (at least at 8 Watts TDP), but it’s still a great way to play it
*Warning for variable refresh rate (VRR) [FreeSync/G-Sync] - Tearing issue:* Sometimes, DXVK has problems detecting the actual resolution and refresh rate list of your computer, and may cause the game to lock in a non-native resolution/refresh rate. Most displays with VRR need to be in their native resolution/refresh rate for their VRR to work. So if misconfigured, your game will have severe tearing. To fix this issue, edit *"dxvk.conf"* and uncomment the line "d3d9.forceAspectRatio" and type your aspect ratio. For example: 1920x1080 and 2560x1440 are "16:9". This will fix the issue by removing unnecessary display modes from the list, so you can select your proper resolution and refresh rate. - "I can just enable VSync": Don't give yourself that pain. It's painfully slow on GTA IV, especially slow with DXVK. - "What's the point if I have to limit the FPS to 60 anyway?": VRR. - "I have ghosting issues/weird outlines after I've done this.": It's because your monitor is actually running at 60 Hz right now if VRR is enabled even if you increased the refresh rate (since you actually set the maximum refresh rate), and most gaming monitors are not calibrated to change their overdrive settings to adjust. If it really bothers you, lower your overdrive settings on your monitor's OSD (settings menu). It might be a number or a list (Off, Normal, Fast, Faster etc.). If you don't trust your eyes, check Rtings.
@@DanielClear2 hi bro i just got a problem, i do this but its a dxvk new version and the games runs stable 60fps for a while, then it starts to fucking stutter less tan 30 fps and it´s unplayable until i change my video mode (1920x1080)144hz to 120hz, 70hz and repite the cycle over and over, any idea of what can i do? i've done those thing you say in you comment but nothing seems to change
Seeing the improvements here, it makes me wonder how much this might affect some other games that had bad ports. AC 3 and unity, nfs MW 2012 come to mind
@@Vixen1525 it really varied on the original port. On one system I had, you'd be lucky to get 5fps, another would have bad hitching, another would be fine for a few minutes.
That sounds like shitty systems because MW 2012 has ran fine on every rig I have had since it came out and I was on a q6600, 6gb ddr2, and HD 5770 in 2012. This fix does work wonderfully on alot of games, I even use it in BF1, and BF4. Helps fps drops even on a 5800x3d in those games online.@@j377yb33n
Just thought i'd post this here as I ran into a problem installing, whereby the game wouldn't let me select my native resolution and was stuck on 1200x800 after installing DXVK I added an extra line to the commandline.txt file -width 2560 -height 1440 -refreshrate 144 This can be changed, depending on your particular resolution & refresh rate. The one above suits a 1440p monitor, with a 144hz refresh rate. Hope this helps someone! Big thank you to TJGM for sharing this MOD. Seems to bring a big improvement. Hope you keep up the GTA IV content, glad that my favourite game isn't dead yet !
@@XCraft62Probably best if you watch this guys last video on GTA iv mods. It’s very in depth. Fusion fix limits the FPS in cutscenes to stop the weird behaviour in cutscenes at high fps
DXVK is what made the GTA IV playable for me. I tried to improve performance of this game for years and years (I had drops below 30 FPS on RTX2070, high-end graphic card released 10 years after GTA IV), trying literally all the stuff that I found in the internet as well as a lot of my own ideas. Nothing helped. Then one day I tried DXVK and it worked like a charm, constant 60 FPS without any stuttering and drops. It may not work for everyone, but for me it worked superb. Mad respect to everyone involved in creating this tool
EPIC mate! This GTA has still a special place in my heart! It introduced next gen for us all! I always wanted to play it on pc but didnt want the horrible performance. now i 100% make a new game on pc!
DX9 is the major problem on GTA IV because the game is too big...If you heard about drawcalls: The DX9 is limited by software to about 6000 drawcalls and only one cpu core, and vulkan use all cores with no limit for drawcalls. A drawcall is the cpu telling instructions for the gpu about the next frame, and as the DXVK is a translation layer this helps a lot on "converting it"...I've made a video about it 3ys ago. Edit: It doesn't works on all Nvidia GPUs, but works on any AMD GPU after HD 7970, because Vulkan is based on Mantle, which was an API created by AMD that became open source some years ago. Mantle was designed to run specifically on GCN based cards.
No the issue is it's unoptimized. If they actually spent time properly optimizing the game then the drawcall issue wouldn't be a huge issue. It's like driving down the worst paved road in existence filled with pot holes and then saying the reason you have to drive so slow is because of your tires.
The known optimisation at the time is atlasing and then merging drawcalls per sector or octree node to reduce the number of actual drawcalls. Would have for sure been something to consider to meet performance target on PC. Could have even helped on consoles who knows, since you don't have to update those merged draws a lot. Also they could have given it a DX11 port eventually which could have been more optimised. DX11 was available just a short time later.
The reason behind the terrible performance is the presence of DirectDraw in the rendering pipeline. This API was already completely unneeded at the time of release and it was NEVER meant to be combined with anything higher than DirectX 7. It looks like someone at Rockstar used old GTA 3 era code and pushed that into production, because it worked fine. However with the release of Windows 7 and the new hardware (with new drivers), the support for DirectDraw has heavily degraded, and it ruined the GTA 4 port down. If you want to confirm this bottleneck, use DDrawCompat, it will make the game playable for you again without converting to another API. Sure the performance result is not as good as in DXVK, but in case of clean DX9 pipeline implementation, it surely would have been so much better.
Just got done replaying 4 and I believe it. There are a lot of quirky little leftovers from the 3d era games in the gameplay, makes sense behinds the scenes too.
Hey man thanks for screengrabbing my comment! I'm glad these videos are getting a bit of momentum and hope even more people can experience this wonderful game! Cheers!
So glad I found your channel, I hope that there'll ever be (or already is) a mod to get some 'modern' controlls and mechanics from gta 5 and the trilogy remake/remasters.
DXVK was primarly developed as a graphics wrapper for Wine under Linux, BSD and Mac (because obviously, D3D doesn't work on Unix-based/Unix-like systems). So I'm actually surprised that it was used as a performance fix in GTA IV.
WineD3D (OpenGL based) was already occasionally much faster than Windows native Direct3D9 framework. Vulkan backend adds even more optimisation and irons out a lot of occasional performance rough spots caused by OpenGL implementations. That being said both are less GPU/shader-efficient, but they are more CPU-efficient. Given these old games have an overabundance of GPU performance these days, but CPU is still tight being very single thread bound and CPUs not developing at the same pace in single threaded performance, this helps. Vulkan also currently has pipeline compilation stutter that is not present in DirectX, but it can be very slight and it's getting properly resolved soon.
All right. In general, I don't really like these kinds of videos because they never really worked for me. But concretely, it now has 150-200 fps. So thank you man, this thing is amazing.
I recently started playing GTA IV again and the first thing I did was installing the dxvk fix and it's working flawlessly. No Stutters at all and I'm loving the overall experience of the game ❤
Can you install DXVK with a GPU that doesn't support vulkan...I have a Acer Aspire with a Nvidia Geforce GT 540m...2GB Vram & a I5 2430m...with 6 GB of Ram...Win 7...
@@fransindongo3207 it will not work (even if it runs, you'll get single digit fps since it'll be software rendered). you'll probably have to stick with the game at stock.
In case anyone with a Legion Go or ROG Ally is curious - this absolutely works, alongside the other video "Fixing GTA4 with 4 Mods" by the same creator. Follow the process the same as described in the video (but do check the description as there is updates versions for things like FusionFix since this video released, process is pretty much the same but again read the deacription for any caveats). I am geting a very stable 60fps on legion go at 1200p. Enjoy!!
My gmae still thinks that I have 512 MB of Video memory even after I added the comandline.txt file. Any solutions? EDIT: I figured it out. I just had to use files from the x64 folder instead of the x32 one like it was shown in the video. So if this helped anyone with the same issue you are welcome :D
DXVK definitely works, it mostly fixed Test Drive Unlimited 2 crash issues on my RTX 3080Ti Laptop. Will give it a try again after I installed GTA IV on PC.
Think you should mention this in your pinned comment. It will only work if the PC has got Vulkan-compatible specifications. I, as a novice dumbo tried it with an Intel iGPU from 2012, crashed the game- and my friend got a kernel error. NOT RECOMMENDED AT ALL with a Non-Vulkan GPU and Processor. I have only got DirectX and OpenGL compatible. Additional note: I have also heard that DXVK worked partly for some folks like me. It is quite a complication.
THANK GOD THIS VID EXIST! thank you my guy, solved the problem of perfomance and my precious potato laptop can finally run smoothly, no joke. 05/10/2023.
I've came from your recent video & I tried drag & dropping d3d9 file but it keeps stuttering. I've also did the -availablevidmem 8192 -nomemrestrict -norestrictions commands & downloaded the config file to try & fix the stutter but nothing happens. I have an RTX 2070 & an i5 9600k, weird it keeps lagging.
You don't need the no precache var. It actually hinders performance. Also if you're getting popin or texture streaming bugs change your video memory values to about a 3/4 of what you have So for example if you're running 4 gigs or 8 it would be 4096 use 3072 instead. This issue is rare tho so you shouldn't need to do this
@@TJGM You helped me a lot. I've tried to play this game since 2011 (my original code worked for R* launcher) but always had trouble with perfomance. Even on my PC (R5 2600x amd GTX 1070ti). So that's a huuuuuge difference. I don't know how they tested it and decided to release it. But they were always lazy.
@@DunoCZ Dxvk on Windows mostly makes sense with titles that use DirectX 9. DirectX 11 games may have poorer performance. Windows doesn't need things like DXVK or VKD3D. Linux doesn't have DirectX, so translation to Vulkan is needed. Another thing is the game using Vulkan or OpenGL, then DXVK/VKD3D is not needed or when title have native Linux version.
Thank you, mine was capped at 60 by default and it didn't change the memory value, but it was way worse with Vulkan than with DirectX. However, after adding that text to the folder, the game became buttery smooth. Thanks again.
i had actually had a problem with my 21:9 resolution. It simply wasn´t available in the setting menu. So I just tried the dxvk files from the x64 folder insted of the x32 files and i was again able to choose my 3440x1440 resolution.
You kinda sounds like Jim Browning, you know, the youtuber? Perhaps you live in the same region, since the accent is pretty similar. Nice video btw 😉 Finally someone fixed this. Love GTA 4.
Capping this game at 60fps is also better because bike physics are bound to your frames and anything above 60fps will make them handle badly because they basically loose weight
If you turn down the distance sliders to 75 from 100, I'm generally able to hold 60 fps solid for most of the time in vanilla. I'll have to check this out though.
WoW thanks a lot! You saved my day as I just reinstalled the game today and was wondering if I should remove it because of the constant stuttering that gives me headaches 😅
But keep in mind that some gpu's dont work with dxvk it will either not launch or just crash because some gpu's dont support vulkan like intel hd graphics
Unfortunately vulkan also stutters, tho no where near as much as dx9. It might just be me but I'm very sensitive to micro stutters. Micro stutters are not like fps drops caused by gpu bottleneck, stutters are micro freezing of the game, so they are annoying and unacceptable. If i spent over 3k on a gaming pc then i want the fps graph line to be perfectly flat at all times.
I remember playing this on the laptop before i reformatted it, The settings are all the way down and i get like 15-17FPS and somehow my brother finished the game with the ridiculous FPS. Wonder if this fixes anything, i might redownload it again
if your system only gets 15fps, then the GPU is likely to old to run vulkan properly anyway, so DXVK wouldn't work for you. Do you know the specs of the machine?
@@yotoprules9361 Eh it's just an R2 Graphics from AMD. I just had to repaste the dried compond and install a new RAM stick and tossing in an SSD for faster loading times.
@@yotoprules9361 It runs GTA IV kind of fine-ish, but that's before i upgraded the basic stuffs. It used to not run GTA IV properly due to lack of RAM since intergrated graphics needs RAM to work aswell. But as i upgraded it to 4GB RAM, There it is. it runs GTA IV.
Tbh till 2019 when I still had my PC, my i7-6700k oc to 4.4 in summer with my 1080Ti and M.2 SSD could run it perfectly, that's also why I couldn't understand your prior video where you complained about the performance.
Hi, TJGM. I recently read a news article on Sportskeeda on how you'd come to explain the working mechanics of lighting apparatuses/mechanisms in San Andreas. I like the amount of detail you put in that article, and I'd like to share with you some elements of the game I found concerning styles of design in GTA: SA in terms of how select songs, narrated skits from some of the in-game DJs, specifically selected radio stations, character costuming, the color and lighting schemas of certain buildings about the map, as well as the in-game map itself are used to both visually and auditorily enhance pivotal points within the game's narrative, from a filmmaking perspective. I believe the elements in my argument/findings to make sense, and everything I've found neatly and conveniently fits in place with all of other elements listed, with the overall goal of enhancing the same exact story never seeming to change/faulter. When neatly embedded coincidences continue to crop up time and again, I believe such "coincidences" to be intentional design patterns. And the patterns I found seem to be pretty shrewd indeed, at least in my opinion. Let me know what you think. I could post everything on one of your video threads, but it is a bit long (perhaps about the equivalency of circa 20 pages in Word). But it's very detailed, and a lot of people I've shared with online have said its pretty dang creative of Rockstar's skills when it comes to visual and auditorial storytelling. I could also email you my findings if you would prefer that method. If you like what you see, feel free to add the criteria to your channel!
Hi! Sorry I'm only seeing this now, but it does sound very interesting. If you'd like to email it to me, my email is available on the channel. Thanks :)
Funny thing is no one never talking about eflc.. I have 80+ fps with IV since the patch 1.0.4 is the best - but I don't even have 60fps with the dlc and I've tried any available patch but nothing works. Edit:dxvk included ofc
After installing DXVK i get only little stutters witch i dont mind but overall it did improve my performance. (i have an intel i3 processor and a radion RX 580 AMD GPU) And some settings i did have to tone down like the shadows being off and night shadows also.
AMD GPU drivers on Windows lack graphics pipeline library Vulkan extension to prevent shader compilation stutters (these little stutters like you mentioned). AMD GPUs on Linux doesn't have that problem. You can workaround it by using DXVK Async fork.
"performance fixes generally don't work and they are a waste of time" Depends on what the fix is doing, a lot of people will make a mod that is a "performance fix" that changes some LOD settings or removes something from the game to make it run better and these do very little to actually fix the problems most people are having while making the game lose some of the shininess. Some performance fixes actually hit engine bugs that actually are causing performance hits, some are actually using a new framework (like the DXVK) and I can assure you that THESE approaches are almost always worth the time, especially when you're dealing with "older" games.
64bit won’t work on the game, run an fps overlay to make sure you are running vulkan. Also if the game crashes with the x32, try running just the d9.dll file only.
And hence he forth spoke: "Ask and You shall receive!" Matthew 7:7-11 - “Ask, and it will be given to you; seek, and you will find; knock, and it will be opened to you. For everyone who asks receives, and the one who seeks finds, and to the one who knocks it will be opened."
Most of gamers for 2 decades will not know this, but DXVK is nothing new but a wonderful continuation on modding APIs to make old games or even older GPUs run better on newer games. This goes all the wayback in Windows 98 era where I used to own motherboards with no support for AGP slot (was common in SiS Chipsets) and its only an integrated graphics card onto the motherboard itself and if you've been there (not APUs), you'll know methods to make your PC run games with up to 30 FPS. Most games from the 90s were all running in OpenGL which was the popular API than DirectX 7.0/8.0 which made cheap GPU options hard to run anything at all and if you had 3DFX Voodoo - OpenGL games were smoother on those thanks to Glide. That is where reverse engineering came in which made a universal graphics driver to translate OpenGL/Glide games to run to DirectX. Sounds familiar with DXVK? It sure is. Translation layers were possible before to be added by driver level instead of copying the dynamic libraries manually especially with modified drivers for either 3DFX, NVIDIA, and ATi. Manufacturers hated this method cause it slowed the demand for new Graphics Cards and made people to stick with what they've got, and so they made it harder to modify the drivers - especially with NVIDIA. Yes, it was not a myth that NVIDIA made some older GPUs slow on some games in the past back then which if you rollback into an older driver before the slower performance... you can recover it (that's when DDU was born). TL;DR - Yes I'm a Gamer Boomer. Whatever I say.
Hey, thank you for this great showcase, and the follow-up provided in the pinned comment and the following video! One question, which FPS monitoring overlay do you use?
You can actually play the AC Origins and AC Odyssey with 60 FPS+ almost all the time on your i5 7600K + GTX 1070 even in busy areas, I have personally tried it on my previous i5 7500 + GTX 1060 6GB OC system in the last year and DXVK was a real game changer when it comes to handling the CPU Bound situations but it looks like a necessity in GTA IV even if there is a modern computer 👍🏻
Whoa! Thank you for showing us this. I really not into pc gaming by now ,so a few titles interests me only. I wish you get a few 1000$ of this video. Thanks 🙏
I did it here, but the game doesn't recognize my monitor's resolution and it only stays at 1280x900 75hz, my monitor is 1440p. How do I change the resolution if the game doesn't give me the option?
9:45 - So I did all that (minus the "-noprecache" line, since you've said it's not needed), and the game still thinks I have less RAM than I actually do. I did include the amount of RAM that I actually have, so...😐. I'm using Notepad as a text editor, btw, and it does do .txt files, so I'm not sure what I did wrong. Oh, and I did include the d3d9.dll file too, in case you're wondering.
With RivaTuner FPS Limit, do you still use VSync for the game? Honest Question because I thought I read somewhere Vsync is recommended to be turned off with Riva's FPS Limiter function and a couple of games would screen tear.
@@breh9320 Thanks for the clarity. Was wondering because when I change displays (sometimes I'll use my 4K 120hz TV as a main PC monitor) and I'll get screen tear on that but will not happen on my 1080p 300hz Laptop Screen. I've yet to find a solution to that quirk outside of playing the game in windowed mode but it's good to know the FPS Limiter on Riva isn't literally just that, but actually a VSync. I should make it known that the screen tearing is subtle, if I'm not looking for it then it's hard to really notice.
Unfortuantely my commandline.txt didn't change the allocated VRAM, all was typed and spelled correctly, does the standard windows Text program work okay? Or do you need your text program that you have?
I have never played GTA but thank you very much for explaining the installation method of dxvk. Btw My Msi RTX 2080S died last week so I am on my fallback GPU a GTX 980 atm... so the GTX 1070 isn't that bad, believe me.
Honestly i played/tested this game on sooooo many different PC configurations (i3 540, DualCore E5500, Q8200, Sempron 140, Athlon II X2 440, FX 6100, Ryzen 2600, GT 610, GT730, GTX960, HD3870, HD7770, R9 280X, RX 580...) that i sort of gave up until acouple years ago when i tried DxVk aswell and it was like a rebirth, a whole new experience, stutters were gone, fps was stable, after 13+ years of fighting with a badly optimized game, safe to say the fight was over and DXVK was the one who helped me win that war.