Hi all, I am making a public server but I need to allocate memory to my server but, I don't know what line of code to add to my startup/watchdog.
Any help will be great!
[CODE]@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game garrysmod +gamemode sandbox +map gm_construct +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
[/CODE]
Note: I know this is not a thread for code help, but this is not a mod, this involves playing the game, again any help will be great!
AFAIK you don't need to allocate memory, srcds will use as much as it needs on its own.
-snip-
[QUOTE=Robotboy655;44253800]AFAIK you don't need to allocate memory, srcds will use as much as it needs on its own.[/QUOTE]
Well, when ever my first round of ttt starts the server laggs MASSIVLEY! Any help on this will be great
What addons do you have? Are you using a host or are you self-hosting?
[QUOTE=code_gs;44255797]What addons do you have? Are you using a host or are you self-hosting?[/QUOTE]
I'm self hosting on my pc, I don't have many addons that will effect ttt, I had this problem even before addons.
P.S. I am willing to allocate ram because I have 16 gigs and I really only need 8 to run my game and PC.
[editline]19th March 2014[/editline]
Also, I just wan't to know how even if I don't end up doing it, I'm new to coding stuff like this and I am eager to know!
What CPU do you have?
[QUOTE=Svenskunganka;44294235]What CPU do you have?[/QUOTE]
Not sure right now, its an AMD 6 core though hold on.
[editline]21st March 2014[/editline]
Alright, its an AMD FX 6-core black editon
Exact model name, please.
Right-click Computer>Properties
[QUOTE=Svenskunganka;44316472]Exact model name, please.
Right-click Computer>Properties[/QUOTE]
AMD FX(tm)-6100 Six-Core Proccesor
[editline]21st March 2014[/editline]
Sorry about that! :smile:
Enable net_graph 4 in console, print screen when this lag occurs and post it here.
Your issue is that your game uses the same CPU core as the server. You can assign the server and game to different cores in the task manage process list.
Alright thank you
Sorry, you need to Log In to post a reply to this thread.