Upvote Upvoted 5 Downvote Downvoted
Can an excess of exec commands lag my game?
posted in Customization
1
#1
0 Frags +

So I'm using a whole lot of alias/exec commands in my config files and I was wondering if it could have a negative impact on my performance. Other than the fact, that I'm using a laptop ;_;

Here are some examples (these are not the whole files):

autoexec.cfg (a viewmodel weapon-swich command that works with Q)

// Aliases - setting up the script
alias vm1 "r_drawviewmodel 1" // Default Primary Viewmodels 
alias vm2 "r_drawviewmodel 1" // Default Secondary Viewmodels 
alias vm3 "r_drawviewmodel 1" // Default Melee Viewmodels 
alias eq_1 "eq_1f3"
alias eq_2 "eq_2f1"
alias eq_3 "eq_3f1"
alias sw ""
alias eq_1f2 "slot1;vm1;alias sw eq_2f1;alias eq_2 eq_2f1;alias eq_3 eq_3f1"
alias eq_1f3 "slot1;vm1;alias sw eq_3f1;alias eq_2 eq_2f1;alias eq_3 eq_3f1"
alias eq_2f1 "slot2;vm2;alias sw eq_1f2;alias eq_1 eq_1f2;alias eq_3 eq_3f2"
alias eq_2f3 "slot2;vm2;alias sw eq_3f2;alias eq_1 eq_1f2;alias eq_3 eq_3f2"
alias eq_3f1 "slot3;vm3;alias sw eq_1f3;alias eq_1 eq_1f3;alias eq_2 eq_2f3"
alias eq_3f2 "slot3;vm3;alias sw eq_2f3;alias eq_1 eq_1f3;alias eq_2 eq_2f3"

// Binds - binds the commands to keys

bind "1" "eq_1"
bind "2" "eq_2"
bind "3" "eq_3"
bind "q" "sw"

soldier.cfg

alias vm1 "r_drawviewmodel 0;exec crosshair.cfg" // View Models: Primary 
alias vm2 "r_drawviewmodel 0;exec crosshair2.cfg" // View Models: Secondary
alias vm3 "r_drawviewmodel 1;exec crosshair.cfg" // View Models: Melee

eq_1f3 // Initialise

crosshair.cfg

cl_crosshair_file crosshair7
cl_crosshair_blue 0
cl_crosshair_green 255
cl_crosshair_red 0
cl_crosshair_scale 36

crosshair2.cfg

cl_crosshair_file crosshair5
cl_crosshair_blue 0
cl_crosshair_green 255
cl_crosshair_red 0
cl_crosshair_scale 30

Basically, what I thought is that the game has to execute a lot of configs, though simple, in a relatively short time. Might that cause anything or not?

So I'm using a whole lot of alias/exec commands in my config files and I was wondering if it could have a negative impact on my performance. Other than the fact, that I'm using a laptop ;_;

Here are some examples (these are not the whole files):

autoexec.cfg (a viewmodel weapon-swich command that works with Q)
[code]// Aliases - setting up the script
alias vm1 "r_drawviewmodel 1" // Default Primary Viewmodels
alias vm2 "r_drawviewmodel 1" // Default Secondary Viewmodels
alias vm3 "r_drawviewmodel 1" // Default Melee Viewmodels
alias eq_1 "eq_1f3"
alias eq_2 "eq_2f1"
alias eq_3 "eq_3f1"
alias sw ""
alias eq_1f2 "slot1;vm1;alias sw eq_2f1;alias eq_2 eq_2f1;alias eq_3 eq_3f1"
alias eq_1f3 "slot1;vm1;alias sw eq_3f1;alias eq_2 eq_2f1;alias eq_3 eq_3f1"
alias eq_2f1 "slot2;vm2;alias sw eq_1f2;alias eq_1 eq_1f2;alias eq_3 eq_3f2"
alias eq_2f3 "slot2;vm2;alias sw eq_3f2;alias eq_1 eq_1f2;alias eq_3 eq_3f2"
alias eq_3f1 "slot3;vm3;alias sw eq_1f3;alias eq_1 eq_1f3;alias eq_2 eq_2f3"
alias eq_3f2 "slot3;vm3;alias sw eq_2f3;alias eq_1 eq_1f3;alias eq_2 eq_2f3"

// Binds - binds the commands to keys

bind "1" "eq_1"
bind "2" "eq_2"
bind "3" "eq_3"
bind "q" "sw"[/code]

soldier.cfg
[code]alias vm1 "r_drawviewmodel 0;exec crosshair.cfg" // View Models: Primary
alias vm2 "r_drawviewmodel 0;exec crosshair2.cfg" // View Models: Secondary
alias vm3 "r_drawviewmodel 1;exec crosshair.cfg" // View Models: Melee

eq_1f3 // Initialise[/code]

crosshair.cfg
[code]cl_crosshair_file crosshair7
cl_crosshair_blue 0
cl_crosshair_green 255
cl_crosshair_red 0
cl_crosshair_scale 36[/code]

crosshair2.cfg
[code]cl_crosshair_file crosshair5
cl_crosshair_blue 0
cl_crosshair_green 255
cl_crosshair_red 0
cl_crosshair_scale 30[/code]

Basically, what I thought is that the game has to execute a lot of configs, though simple, in a relatively short time. Might that cause anything or not?
2
#2
1 Frags +

That is a very small cfg even with a lot more stuff it wont make any difference in game imo.

That is a very small cfg even with a lot more stuff it wont make any difference in game imo.
3
#3
4 Frags +

A: yes it can theoretically

my lag script is just execing random crap
eg: https://www.youtube.com/watch?v=WT-6A4nJUf0&t=5m45s

now for your specific script I couldn't say. it may or may not affect performance. I don't use big weapon switching scripts for this reason.

anyways gl^

A: yes it can theoretically

my lag script is just execing random crap
eg: https://www.youtube.com/watch?v=WT-6A4nJUf0&t=5m45s

now for your specific script I couldn't say. it may or may not affect performance. I don't use big weapon switching scripts for this reason.

anyways gl^
4
#4
3 Frags +
wonderlandA: yes it can theoretically

my lag script is just execing random crap
eg: https://www.youtube.com/watch?v=WT-6A4nJUf0&t=5m45s

now for your specific script I couldn't say. it may or may not affect performance. I don't use big weapon switching scripts for this reason.

anyways gl^

can you post the lag script

[quote=wonderland]A: yes it can theoretically

my lag script is just execing random crap
eg: https://www.youtube.com/watch?v=WT-6A4nJUf0&t=5m45s

now for your specific script I couldn't say. it may or may not affect performance. I don't use big weapon switching scripts for this reason.

anyways gl^[/quote]

can you post the lag script
5
#5
0 Frags +

nope :^)
not gonna do that sorry

nope :^)
not gonna do that sorry
6
#6
-11 Frags +

snd_restart

WHOA ,SUCH LAG ,MUCH ROCKET JUMP!

snd_restart

WHOA ,SUCH LAG ,MUCH ROCKET JUMP!
7
#7
-10 Frags +

much lag, such rocketjump*
original doge uses reasonable word pairs.

much lag, such rocketjump*
original doge uses reasonable word pairs.
8
#8
20 Frags +

taken to meme school

taken to meme school
9
#9
3 Frags +
MIndsnd_restart

WHOA ,SUCH LAG ,MUCH ROCKET JUMP!

thanks for informing me about methods I fucking invented, which everyone and their mother knows about now, but it's not the same as execing a cfg for lag (which is more controlled).

derailing this thread into a discussion about stupid lag scripts is not what I want(ed) :/
it was just for jump maps, specifically impossible demo maps. not so ppl can abuse it in multiplayer/comp and think they are mlg.

[quote=MInd]snd_restart

WHOA ,SUCH LAG ,MUCH ROCKET JUMP![/quote]
thanks for informing me about methods I fucking invented, which everyone and their mother knows about now, but it's not the same as execing a cfg for lag (which is more controlled).

derailing this thread into a discussion about stupid lag scripts is not what I want(ed) :/
it was just for jump maps, specifically impossible demo maps. not so ppl can abuse it in multiplayer/comp and think they are mlg.
10
#10
3 Frags +
wonderlandMIndsnd_restart

WHOA ,SUCH LAG ,MUCH ROCKET JUMP!
thanks for informing me about methods I fucking invented, which everyone and their mother knows about now, but it's not the same as execing a cfg for lag (which is more controlled).

derailing this thread into a discussion about stupid lag scripts is not what I want(ed) :/
it was just for jump maps, specifically impossible demo maps. not so ppl can abuse it in multiplayer/comp. and think they are mlg.

i really don't know why you're getting all salty over this. he just informed the guy about your "method" (in a badly dank meme way unfortunately) since you choose not to reveal it, and instead posted a kinda cynical comment.

makes no sense, if everyone and their mother knows, no reason to lash out at the guy who just gave it away.

[quote=wonderland][quote=MInd]snd_restart

WHOA ,SUCH LAG ,MUCH ROCKET JUMP![/quote]
thanks for informing me about methods I fucking invented, which everyone and their mother knows about now, but it's not the same as execing a cfg for lag (which is more controlled).

derailing this thread into a discussion about stupid lag scripts is not what I want(ed) :/
it was just for jump maps, specifically impossible demo maps. not so ppl can abuse it in multiplayer/comp. and think they are mlg.[/quote]

i really don't know why you're getting all salty over this. he just informed the guy about your "method" (in a badly dank meme way unfortunately) since you choose not to reveal it, and instead posted a kinda cynical comment.

makes no sense, if everyone and their mother knows, no reason to lash out at the guy who just gave it away.
11
#11
2 Frags +
Querti really don't know why you're getting all salty over this. he just informed the guy about your "method" (in a badly dank meme way unfortunately) since you choose not to reveal it, and instead posted a kinda cynical comment.

makes no sense, if everyone and their mother knows, no reason to lash out at the guy who just gave it away.

the method he posted is completely different, it has nothing to do with the title of the OP or my first post, except that it causes lag

he also said it like a smart ass doge retard

like I said I didn't want this thread derailed into some shit about lag scripts. I regret making them and I'm not going to spread them that easily. I don't want to spoon feed people who can't figure out how to fill a cfg with gibberish and type exec, and the reason for that is because it gets abused it in comp. and multiplayer (which is just unsportsmanlike). the only legitimate use is jumping and specifically impossible demo maps.

so that's why you won't see me posting lag scripts on comp forums.

and I don't know how my second post is construed as cynical, all I meant was no

[quote=Quert]i really don't know why you're getting all salty over this. he just informed the guy about your "method" (in a badly dank meme way unfortunately) since you choose not to reveal it, and instead posted a kinda cynical comment.

makes no sense, if everyone and their mother knows, no reason to lash out at the guy who just gave it away.[/quote]
the method he posted is completely different, it has nothing to do with the title of the OP or my first post, except that it causes lag

he also said it like a smart ass doge retard

like I said I didn't want this thread derailed into some shit about lag scripts. I regret making them and I'm not going to spread them that easily. I don't want to spoon feed people who can't figure out how to fill a cfg with gibberish and type exec, and the reason for that is because it gets abused it in comp. and multiplayer (which is just unsportsmanlike). the only legitimate use is jumping and specifically impossible demo maps.

so that's why you won't see me posting lag scripts on comp forums.

and I don't know how my second post is construed as cynical, all I meant was no
12
#12
1 Frags +

i see...you're right, i completely understand that

your second post did look a little bit cynical though, even if you didn't mean it. but let's forget about this

i see...you're right, i completely understand that

your second post did look a little bit cynical though, even if you didn't mean it. but let's forget about this
13
#13
-14 Frags +

go away

go away
14
#14
3 Frags +
wonderlandmy lag script is just execing random crap

Just reading through this and i wondered whats the point of a lag script ?

[quote=wonderland]
my lag script is just execing random crap
[/quote]

Just reading through this and i wondered whats the point of a lag script ?
15
#15
5 Frags +
wareyago away

any reason for being rude right now?

[quote=wareya]go away[/quote]

any reason for being rude right now?
16
#16
2 Frags +

my cfg is literally like 10 files with 100 lines in them each.

my weapon switching is at least 5x larger with more preferences and theyre all class based.

so your answer is no.

certain commands when execed can cause 'lag' but no your scripts won't give you any performance hit.

my cfg is literally like 10 files with 100 lines in them each.

my weapon switching is at least 5x larger with more preferences and theyre all class based.

so your answer is no.

certain commands when execed can cause 'lag' but no your scripts won't give you any performance hit.
17
#17
0 Frags +

also i like how you people are arguing over a "lag script"

theres literally 2-3 commands in the game that can force you to stutter, its nothing complex or 'scripted'

also i like how you people are arguing over a "lag script"

theres literally 2-3 commands in the game that can force you to stutter, its nothing complex or 'scripted'
18
#18
0 Frags +

I have 3 scripts that autoexec and are 500, 1800, and 5000 lines long. My game takes less time to start up if I disable them and it stutters for ~15 seconds if I autoexec in game

I have 3 scripts that autoexec and are 500, 1800, and 5000 lines long. My game takes less time to start up if I disable them and it stutters for ~15 seconds if I autoexec in game
19
#19
0 Frags +

Wow, did you really just get mad at me for that? It's not like this is some black magic shit...

Wow, did you really just get mad at me for that? It's not like this is some black magic shit...
20
#20
5 Frags +

running lag scripts or having a bind that causes you to freeze can be seen in demos and will get you banned if you get reported

running lag scripts or having a bind that causes you to freeze can be seen in demos and will get you banned if you get reported
21
#21
1 Frags +

It can very easily been seen since a demo just re-executes all commands

It can very easily been seen since a demo just re-executes all commands
22
#22
1 Frags +
flamealso i like how you people are arguing over a "lag script"

theres literally 2-3 commands in the game that can force you to stutter, its nothing complex or 'scripted'

nah man he invented all of them, despite the fact they were being abused around the time ctf_bball was first released in, what, 2008 2009?

[quote=flame]also i like how you people are arguing over a "lag script"

theres literally 2-3 commands in the game that can force you to stutter, its nothing complex or 'scripted'[/quote]

nah man he invented all of them, despite the fact they were being abused around the time ctf_bball was first released in, what, 2008 2009?
23
#23
-1 Frags +
Quertany reason for being rude right now?

how about your pretending to be polite when actually trying really hard to have the last word in an argument

[quote=Quert]any reason for being rude right now?[/quote]
how about your pretending to be polite when actually trying really hard to have the last word in an argument
24
#24
0 Frags +
flamealso i like how you people are arguing over a "lag script"

theres literally 2-3 commands in the game that can force you to stutter, its nothing complex or 'scripted'

the way he worded his post made it sound like he had some other commands that he was execing that let him control the length of the lag rather than the standard hud_reloadscheme or snd_restart

[quote=flame]also i like how you people are arguing over a "lag script"

theres literally 2-3 commands in the game that can force you to stutter, its nothing complex or 'scripted'[/quote]

the way he worded his post made it sound like he had some other commands that he was execing that let him control the length of the lag rather than the standard hud_reloadscheme or snd_restart
Please sign in through STEAM to post a comment.