16 Commits

Author SHA1 Message Date
Kawe Mazidjatari
4357c9dbf3 Fix many compiler warnings
Fix many compiler warnings indicating potentially unwanted implicit conversions/truncations.
2023-04-02 00:59:24 +02:00
Kawe Mazidjatari
2d7e2d5567 Fix bug in CPU detection code caused in recent commit
Should be 0x49, not 49. Thanks rexx!
2023-02-12 10:33:46 +01:00
Amos
8f4a5f45e7 Fixup L3 cache case 0x49
If EAX descriptor is 0x49, a check must be performed to determine whether or not to set the L3 cache.
2023-02-11 17:15:43 +01:00
Amos
c0fe74a321 Set cache desc to whole descriptor for Intel CPU's 2023-02-11 16:31:53 +01:00
Amos
9145030b77 Cleanup InterpretIntelCacheDescriptors
Pass 'CPUInformation' by reference instead of using the static directly.
2023-02-11 15:19:29 +01:00
Amos
78288796e2 Fix bug in 'FindIntelCacheDesc'
It never iterates over the static arrays.
2023-02-11 15:15:52 +01:00
Amos
2e7786a4cf Add cache descriptor for Intel CPU using function code 4 2023-02-11 15:15:06 +01:00
Amos
b92d442596 Fix missing cache information on Intel processors
'cpuidex' should return true.
2023-02-10 00:05:58 +01:00
Kawe Mazidjatari
89bedf59d8 Fix typo 2022-12-26 21:58:39 +01:00
Kawe Mazidjatari
242320e735 Also check CPU for SSE 3, SSSE 3 and POPCNT.
Check for SSE 3, SSSE 3 and POPCNT in CheckCPU(), and SSE, SSE2 in MathLib_Init().
This should fix all crash cases caused by launching the game on unsupported CPU's.
2022-09-14 02:23:06 +02:00
Kawe Mazidjatari
baeb343164 Improve pad removal of CPU brand identifier
Reverse scan CPU brand name until first non space character is found.
2022-08-09 13:05:12 +02:00
Kawe Mazidjatari
987fc6f78e Update casts 2022-04-18 20:15:23 +02:00
Kawe Mazidjatari
1e7b746356 More detailed system stats
Fixed physical core count always returning logical core count (this engine does not run on the AMD Phenom processor).
2022-04-18 16:45:26 +02:00
Kawe Mazidjatari
7c9a50f0d5 Add proper license to project
The project was never licensed, it only contained third party licenses.
I determined to use the Source SDK 2013 license for this, as the majority of the business logic running this product is based on Valve's (the license has zero restrictions in the scope of our goal with this project).
The licenses has to be included with any depots from now on in the folder 'legal' placed in the root of the project folder (the location of r5apex_ds.exe).

With any new additions of third party code, the 'thirdpartylegalnotices.txt' file has to be updated accordingly.
2022-04-01 00:11:42 +02:00
Kawe Mazidjatari
328fc61b27 Fix MSVC compiler errors 2022-03-23 19:23:53 +01:00
Kawe Mazidjatari
4bb3be2a8e Implement CPU utils and FastTimer
CPU system utilities and FastTimer (inline)
2022-03-21 23:13:03 +01:00