I have found that, in certain mods such as Nashgore and High Noon Drifter, a small area of wall can rapidly soon get painted in hundreds of blood/bullet decals, leading to a single digit frame-rate every time you look at it up close. With this in mind, I am trying to create a universal mini-mod that allows me to clear all decals from a map with a single key press. But while I haven't found anything on the ZDoom wiki to suggest it, I fear there might already be a console command or something that can do this, in which case I'm engaged in a pointless endeavour.
Is there any way to clear all decals?
Question regarding Decals
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49229
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Question regarding Decals
Yes, you have to temporarily reset the number of allowed decals to 0 and then back up to what you want.
The CVAR for that is 'cl_maxdecals'.
But may I ask what configuration you are running? I haven't seen slowdown from decal overload for a long time.
The CVAR for that is 'cl_maxdecals'.
But may I ask what configuration you are running? I haven't seen slowdown from decal overload for a long time.
- Tesculpture
- Posts: 199
- Joined: Sun Feb 07, 2016 3:22 am
Re: Question regarding Decals
I figured out I could do it by making a keyconf edit and alias to quickly switch cl_maxdecals, but I assumed that was the wrong way to do it on the basis that achieving anything by altering a user's CVar settings is a bad idea.
As for what config I'm running, If you mean my PC, it has a Intel Core I7 4770 3.4GHz processor with 8GB RAM and an AMD Radeon R5 200 Series graphics card.
If you mean GZDoom's config settings, this is from my .ini file:
As for what config I'm running, If you mean my PC, it has a Intel Core I7 4770 3.4GHz processor with 8GB RAM and an AMD Radeon R5 200 Series graphics card.
If you mean GZDoom's config settings, this is from my .ini file:
Spoiler:
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49229
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Question regarding Decals
That graphics card is definitely a serious bottleneck in an otherwise nice system...
Re: Question regarding Decals
Try doing this:
alias cleardecals "cl_maxdecals 0; wait; cl_maxdecals 4000"
bind insertkeyhere cleardecals
alias cleardecals "cl_maxdecals 0; wait; cl_maxdecals 4000"
bind insertkeyhere cleardecals
- m8f
-
- Posts: 1457
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Location: Siberia (UTC+7)
- Contact:
Re: Question regarding Decals
This mod includes a command to clear decals while preserving the user settings. You can assign in to a key:
bind <<your key>> wm_cleardecals
bind <<your key>> wm_cleardecals
- Tesculpture
- Posts: 199
- Joined: Sun Feb 07, 2016 3:22 am
Re: Question regarding Decals
Thank you for your replies. I think I have what I need now.