|
 |
|
|
|
|
|
Grand Theft Auto IV
Making a -memrestrict value Is this right or Not
 |
|
 |
| |
Regor245  |
|
Player Hater

Group: Members
Joined: Feb 17, 2012

|
I know this is dumb but.. I think this is the way how it works. Ok Example: I have 256mb of Vram and 2GB of ram, but about 1.7 GB is usable | QUOTE | | 256 x 1700 x 1700 = 739840000 |
Vram x Ram x Ram (i thought it was Vram x Resolution x Resolution... but it's not) When i've tried that value, It fixes my popping textures problem. Currently using "256 x 1024 x 1024 = 268435456" - game runs better and less Ram usage. There is no texture popping when i was using patch 1.0.4.0, but when i've upgraded to 1.0.7.0. it started.. ___________ I've tried this value | QUOTE | 256 x 640 x 640 = 104857600 |
Game becomes worse. Textures Popping so bad. Quote from Rockstar Toronto | QUOTE | Basically -memrestrict is telling the game how much video memory your system has available. At startup we query the OS for this value but as some of you may have noticed the number can vary even though you are obviously not changing your video card everytime you play the game.
Once the game exceeds the amount of video memory available, the Os finds it from somewhere else (system memory) and eventually this causes fragmentation and the game throws up an RESC10 error because the OS can't find anymore free memory. The tricky part is that every OS behaves differently, and thats before you factor in other .dll's and drivers that also make requests from this memory pool which will be different from user to user.
Using -memrestrict explicitly tells the game how much video memory to use. The math is to take the desired meg number and multiply it by 1024 twice. So if we wanted to declare 600 megs of VRAM:
600 x 1024 x 1024 = 629145600
you would enter the commandline "-memrestrict -629145600"
Lowering this number increases stability of the game by capping the video memory, but there will come a point where there isn't enough memory to draw everything required by the game which is when you see "popping". |
___________ EDIT: Just ignore this thread/post. But i think i'm doing it right. feel free to post if i'm wrong. This post has been edited by Regor245 on Monday, Mar 12 2012, 11:31
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
mkey82  |
Posted: Tuesday, Mar 13 2012, 06:37
|
Keep riding hard, son

Group: Members
Joined: Feb 14, 2008


|
Well, I expected that question  Basically, it's an arbitrary value because, in a general case, you'll want to "limit" the available amount of memory to a value lower then the actually available. This should only serve as a starting value, you will always want to test with lower/higher numbers. On one end you should get more popup and more stable performance, on the other more details and lag caused by loading textures. The trick is to hit a sweet spot in the middle. This post has been edited by mkey82 on Tuesday, Mar 13 2012, 06:41
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Regor245  |
Posted: Wednesday, Mar 14 2012, 09:54
|
Player Hater

Group: Members
Joined: Feb 17, 2012

|
| QUOTE (cornflakes4u @ Tuesday, Mar 13 2012, 21:12) | | QUOTE (Regor245 @ Tuesday, Mar 13 2012, 13:55) | | Ok thanks again, I'll try it later. |
Why do you multiply it by 256? It's 1024 and it's not related to how much RAM or VRAM you have.
You multiply it by 1024 (1MB) twice because the memrestrict value is in bytes.
Edit: Nice ninja-edit. |
LOL ! yes i saw you we're reading this topic when i decided to edit it, because i did it wrong. anyways, i thought 1024 is 1GB/1024mb I think i got it now. i've tried 256 x 1024 x 1024 x 0.85 = 228170137.6... works fine i guess. just give me an example value if it's wrong again. This post has been edited by Regor245 on Wednesday, Mar 14 2012, 10:00
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
fenderjaguar  |
Posted: Saturday, Mar 17 2012, 02:44
|
Player Hater

Group: Members
Joined: Sep 4, 2011

|
| QUOTE (Brainsick @ Saturday, Mar 17 2012, 00:31) | | I assume the "-availablevidmem 3.0" command has to be used in conjunction with "norestrictions" right? |
I used both, but I don't think it necessarily has to matter. If you use the "-availablevidmem 3.0" command, then in the graphics options, you'll see 3GB listed, instead of how much hard VRAM you really do have. "norestrictions" was just a way of unlocking ALL the highest settings on a 1GB card (and observing how much memory actually got used, instead of believing that the game really did 'know' how much it was going to use). But for me, "-availablevidmem 3.0" was more a way of making the game use more of the memory that you had (board memory and video card memory), even if I was using lower settings. For example, in real gaming I don't put any of the settings on 'very high' like I did for that graph, I put them all on 'high'. I turn night shadows off. And I have the draw distances at 40. And at these settings it used about 800, whereas without "-availablevidmem 3.0" command, it would use around 600MB with the same settings. Unused VRAM, up to about 950MB on a 1GB card, is wasted VRAM imo. Also, process explorer never reported any usage of this so called "GPU system memory". I believe that these games differenciate between VRAM and board RAM, but the VRAM never overspilled into the board memory. The used mother board memory maybe some kind of other purpose, but I know that even if loading from the board memory to the VRAM, it must be faster than loading from the hard drive to the VRAM? So why people are so scared of using lots of it? Hell, I've never even seen any game using more than 9xxMB on the VRAM and 2GB on the board RAM. These 32 bit games are large address aware, right? That means it still has 1GB to spare....
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Pages:
(2) [1] 2
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|