Skip to content

Conversation

rainmakerv3
Copy link
Contributor

Closes #3401

This logs the CPU, RAM, and OS on emulator startup with this submodule: https://github.com/lfreist/hwinfo

image

Having spent a bunch of time in bloodborne-chat, I can agree that this bit of logging actually helps quite a bit for those trying to provide help.

Mac build error is because of the submodule (seems like just a missing include?). If this is otherwise okay, can someone fork the submodule to add it in?

Update cpu_info.h

Revert "Update cpu_info.h"

This reverts commit 6db3814.

Revert "cpu info"

This reverts commit cfecdf6.

hardware info
@georgemoralis
Copy link
Collaborator

If i remember correctly we have used this library before and for some reason it was causing big slowdowns

@kalaposfos13
Copy link
Member

Maybe the RAM should be rounded instead of displaying the exact value, and also I feel like it's missing a space

[Config] <Info> emulator.cpp:159 Run: CPU Name: 12th Gen Intel(R) Core(TM) i7-12700H
[Config] <Info> emulator.cpp:160 Run: CPU Cores: 14
[Config] <Info> emulator.cpp:162 Run: RAM: 31.132102966308594GB
[Config] <Info> emulator.cpp:163 Run: Operating System: Arch Linux

@rainmakerv3
Copy link
Contributor Author

I added the space and the rounding, and will try to spend some time this weekend to see if there are any slowdowns on this action.

@georgemoralis
Copy link
Collaborator

yes if you checked a year ago that was added and removed because it was causing issues , dunno if they have fixed them

@StevenMiller123
Copy link
Collaborator

StevenMiller123 commented Aug 8, 2025

Looks like the Windows SDL actions are broken. They complain about needing the various hwinfo dlls, which don't appear to be included in the downloaded action?
image
image

@StevenMiller123
Copy link
Collaborator

Seems like the same applies to the Windows Qt actions too.

@rainmakerv3 rainmakerv3 marked this pull request as draft August 8, 2025 13:25
@rainmakerv3
Copy link
Contributor Author

rainmakerv3 commented Aug 8, 2025

setting set(HWINFO_STATIC ON) as pointed out by @Osyotr removes the need for external dlls, so the windows issues are fixed. Also pointed the submodule to my fork of the library temporarily to add the missing include and fix mac building.

This is ready for performance testing now, I can do some this weekend, but would appreciate if anyone else can.

@rainmakerv3 rainmakerv3 marked this pull request as ready for review August 9, 2025 00:38
@StevenMiller123
Copy link
Collaborator

StevenMiller123 commented Aug 9, 2025

Doesn't seem to cause any performance regression in Bloodborne (CUSA00900)

PR:
image

Main:
image

CUSA00900.log
CUSA00900 PR.log

@rainmakerv3
Copy link
Contributor Author

Did some testing on the games I have that I can play long sessions on (Bloodborne, Gravity Rush Remastered, South Park Stick of Truth) and all of them perform seemingly just like main after 20-30 minutes playing each.

is there something specific that used to trigger the issues with this lib that I should be testing? I can't seem to find the PR that reverted it

@Missake212
Copy link
Contributor

I haven't noticed performance being worse than main on this PR, could this be merged ?

@georgemoralis
Copy link
Collaborator

fork created at https://github.com/shadps4-emu/ext-hwinfo rainmaker you can do your changes there and change the repo

@rainmakerv3
Copy link
Contributor Author

PR submitted to https://github.com/shadps4-emu/ext-hwinfo. will wait on that before switching the repo

@georgemoralis
Copy link
Collaborator

done

@rainmakerv3
Copy link
Contributor Author

Done changing to submodule repo to the shadps4 fork

@georgemoralis georgemoralis merged commit 2c906dc into shadps4-emu:main Aug 14, 2025
12 checks passed
@rainmakerv3 rainmakerv3 deleted the hardware-logging branch August 14, 2025 21:35
nickci2002 pushed a commit to nickci2002/shadPS4 that referenced this pull request Aug 21, 2025
* cpu info

Update cpu_info.h

Revert "Update cpu_info.h"

This reverts commit 6db3814.

Revert "cpu info"

This reverts commit cfecdf6.

hardware info

* log OS

* Round RAM, add space

* switch temporarily to local fork

* Update CMakeLists.txt

* set shallow = true for submodule

* Log logical cores as well

* point submodule to shadps4 fork
AzaharPlus pushed a commit to AzaharPlus/shadPS4Plus that referenced this pull request Aug 30, 2025
* cpu info

Update cpu_info.h

Revert "Update cpu_info.h"

This reverts commit 6db3814.

Revert "cpu info"

This reverts commit cfecdf6.

hardware info

* log OS

* Round RAM, add space

* switch temporarily to local fork

* Update CMakeLists.txt

* set shallow = true for submodule

* Log logical cores as well

* point submodule to shadps4 fork
# Conflicts:
#	CMakeLists.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Make the CPU appear in the log
6 participants