Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching PDA menus causes frame drops #361

Closed
ScratchyNuts opened this issue Jul 31, 2023 · 24 comments
Closed

Switching PDA menus causes frame drops #361

ScratchyNuts opened this issue Jul 31, 2023 · 24 comments
Assignees
Labels
bug report A general purpose bug report.

Comments

@ScratchyNuts
Copy link

It happens with some other HUDS, and some don't have this issue. However, I haven't seen anyone else report an issue like this. It could be a me issue, but just to be sure I wanted to report it. Thanks for reading :)

@CriticalFlaw
Copy link
Owner

I'm aware of this causing frame drops but not if there is an actual fix for it. Which HUDs do not have this issue?

@CriticalFlaw CriticalFlaw added request/suggestion Request or suggestion for a new change. help wanted Issue requires additional help. labels Jul 31, 2023
@ScratchyNuts
Copy link
Author

I'm aware of this causing frame drops but not if there is an actual fix for it. Which HUDs do not have this issue?

Some that I've recently used and don't have this issue are ToonHUD, Middle Mann Centered HUD, SpaceHUD, TF2 HUD Fixes, 7Hud, and NostalgiaHUD

If you're interested, some other HUDs I've used that have this issue are PeachHUD, HypnotizeHUD, SunsetHUD, and MonoHUD

@CriticalFlaw
Copy link
Owner

I'd have to ask around on the huds.tf discord because briefly looking at the huds that don't have this issue - nothing stands out that directly addresses the issue.

@CriticalFlaw
Copy link
Owner

According to other developers this is possibly caused by use of #base in the PDA files. This was done to help with maintaining those files, but if it can be proven that they do infact cause frame-drops (by removing those files and using the default PDA) then I'd consider reverting the #base use.

@CriticalFlaw CriticalFlaw changed the title Switching Between Construction PDA and Destruction PDA causes frame drops Switching PDA menus causes frame drops Aug 4, 2023
@ScratchyNuts
Copy link
Author

According to other developers this is possibly caused by use of #base in the PDA files. This was done to help with maintaining those files, but if it can be proven that they do infact cause frame-drops (by removing those files and using the default PDA) then I'd consider reverting the #base use.

If this alot to ask for, but how can I find the PDA files. I'm stuck on what do you do with the #base files because I can't tell if you delete them or you're saying to delete them then put it back in? (sorry for the bad wording lol)

@CriticalFlaw
Copy link
Owner

The PDA files are located in the following folders:

  • flawhud\resource\ui\build_menu
  • flawhud\resource\ui\build_menu_360
  • flawhud\resource\ui\build_menu_sc
  • flawhud\resource\ui\destroy_menu

@ScratchyNuts
Copy link
Author

so do i remove those files and then do something else?

@CriticalFlaw
Copy link
Owner

You can try removing it then switch PDAs to see if the framedrops still occur. You'll have an unsable PDA menu but at least we'll prove a theory.

@ScratchyNuts
Copy link
Author

Untitled.1.mp4

I tried but it didn't work :( I've linked a vid to show what the frame drop looks like

@CriticalFlaw
Copy link
Owner

Can you show a similar video with the default hud please?

@ScratchyNuts
Copy link
Author

Also sorry for the compression. Github wont upload anything abv 10mb

Untitled.2.mp4

@CriticalFlaw CriticalFlaw pinned this issue Sep 16, 2023
@CriticalFlaw
Copy link
Owner

Interesting note, if you hide the hud using toggle cl_drawhud - the lag persists even though nothing is being rendered on screen.

@ScratchyNuts
Copy link
Author

I don't know how to say this since I don't make HUDs, but could it do with how big the file size of the HUD is? Also, that Middle Mann HUD I mentioned earlier that didn't have this issue now drops frames when I switch between the PDAs. So weird :/

@CriticalFlaw
Copy link
Owner

I did some dumb tests where I kept removing files and restarting. Could you please try deleting flawhud/cfg/valve.rc and test again? That files was added to middleman hud recently so I just wanted to see if you could tell a difference

@ScratchyNuts
Copy link
Author

Good news, removing the valve.rc file doesn't cause the frame drops. However, I don't know it's purpose and if it negatively affects the game at all

@CriticalFlaw
Copy link
Owner

It's main purpose is to ensure that Streamer Mode is not enabled at launch (cl_hud_minmode 0). If you don't use that mode or refresh the HUD frequently, it can be removed without other side-effects. Unfortunately it will need to be kept in the HUD because otherwise, users who use minmode will always load into Streamer Mode with flawhud.

@ScratchyNuts
Copy link
Author

I do use minmode unfortunately, but I don't know how much it negatively affects my game

@CriticalFlaw
Copy link
Owner

It won't be an issue because you can turn off streamer mode in the hud settings. It's just an inconvinience.

@impale1
Copy link
Contributor

impale1 commented Oct 13, 2023

Perhaps he should also check by deleting each command in the valve.rs file in turn

@impale1
Copy link
Contributor

impale1 commented Oct 13, 2023

I changed the value of the vgui_cache_res_files command to 1, and the game stopped lagging

@ScratchyNuts
Copy link
Author

How do I open rs files?

@impale1
Copy link
Contributor

impale1 commented Oct 13, 2023

double-click on the file and then you have to select the notepad application

@CriticalFlaw
Copy link
Owner

Yeah it looks to be tied to vgui_cache_res_files. Changing between 0 and 1 has a noticeable lag when switching PDTs.

@CriticalFlaw CriticalFlaw self-assigned this Oct 14, 2023
@CriticalFlaw CriticalFlaw removed the request/suggestion Request or suggestion for a new change. label Oct 14, 2023
@CriticalFlaw CriticalFlaw added bug report A general purpose bug report. and removed help wanted Issue requires additional help. labels Oct 14, 2023
@CriticalFlaw CriticalFlaw unpinned this issue Oct 14, 2023
@ScratchyNuts
Copy link
Author

Thanks for the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report A general purpose bug report.
Projects
None yet
Development

No branches or pull requests

3 participants