Commit graph

3009 commits

Author SHA1 Message Date
sunshineinabox
f125005511 More formatting changes 2023-08-01 18:15:49 -07:00
sunshineinabox
f9de553621 Fix formatting issues hopefully 2023-08-01 18:07:22 -07:00
sunshineinabox
9cc7c13d15 Formatting issues 2023-08-01 11:08:31 -07:00
sunshineinabox
e59da65d54 Use winapi to get physical core count and revert back to WMI as fall back for CPU name 2023-08-01 11:03:52 -07:00
sunshineinabox
a15eb00ca7 Do not use WMI for memory stats revert to original method 2023-07-31 14:54:59 -07:00
sunshineinabox
cdbb389132 Remove MMI 2023-07-31 14:33:09 -07:00
sunshineinabox
15c94cea44 Resolve Conflict 2023-07-26 21:09:23 -07:00
sunshineinabox
36434edb47 Get once no need 2023-07-26 21:04:45 -07:00
sunshineinabox
5618760299 Switch to WmiLight & enable BuiltInComInteropSupport 2023-07-22 12:09:23 -07:00
sunshineinabox
9345d284d9 Create only one session of CimSession 2023-07-21 20:45:56 -07:00
sunshineinabox
8abab7689c Forgotten 2023-07-21 20:03:50 -07:00
sunshineinabox
31c36afc4c Ensure CimSession is properly disposed. 2023-07-21 18:42:49 -07:00
sunshineinabox
cc8f4f8a11
Merge branch 'master' into GetPhysicalCoreCount 2023-07-21 18:36:36 -07:00
sunshineinabox
3c45020dca Replace System.Managment with Microsoft.Management.Infrastructure. System.Managment has known issue that does not function without complicated COMWraper implementation while publishing trimmed. Will also use MMI as a way to get RAM stats. 2023-07-21 18:34:41 -07:00
sunshineinabox
83ce40af2e Move caching to intialization so that the GetPhysicalCoreCount is not called every time. 2023-07-21 18:34:41 -07:00
Mary
487261592e ava: Fix regression on title updater and dlc manager window caused by precious commit 2023-07-21 22:50:10 +02:00
MutantAura
9e04e6cba1
Ava UI: Remove IsActive checks from dialog methods (#5456)
* Remove `IsActive` checks from dialog methods

* Remove old windows bandaid

* Remove null dialog code path entirely and return nothing.
2023-07-21 12:24:13 +01:00
TSRBerry
4cf2419e6c
HLE: Fix corrupted Mii structs (#5468)
* StructArrayHelpers: Add PureAttribute to all AsSpan() methods

* Fix broken Mii structs
2023-07-19 22:02:31 -03:00
sunshineinabox
50f945c18b
Merge branch 'master' into GetPhysicalCoreCount 2023-07-18 13:19:20 -07:00
Mary
440abac9f8
chore: Update Ryujinx.SDL2-CS to 2.28.1 (#5453) 2023-07-18 16:08:48 +02:00
TSRBerry
732714349e
[Hotfix] sockets: Resolve empty port requests to 0 again (#5459) 2023-07-17 20:47:47 +02:00
sunshineinabox
bcf8580fc9
Merge branch 'master' into GetPhysicalCoreCount 2023-07-16 13:53:27 -07:00
sunshineinabox
2f19ed50ba Print Physical Core count at start up 2023-07-16 13:52:24 -07:00
TSRBerry
016262514d
cpu: Hotfix missing ToNearest rounding mode cases 2023-07-16 20:39:08 +01:00
TSRBerry
326749498b
[Ryujinx.HLE] Address dotnet-format issues (#5380)
* dotnet format style --severity info

Some changes were manually reverted.

* dotnet format analyzers --serverity info

Some changes have been minimally adapted.

* Restore a few unused methods and variables

* Silence dotnet format IDE0060 warnings

* Silence dotnet format IDE0052 warnings

* Address or silence dotnet format IDE1006 warnings

* Address dotnet format CA1816 warnings

* Address or silence dotnet format CA2208 warnings

* Address or silence dotnet format CA1806 and a few CA1854 warnings

* Address dotnet format CA2211 warnings

* Address dotnet format CA1822 warnings

* Address or silence dotnet format CA1069 warnings

* Make dotnet format succeed in style mode

* Address or silence dotnet format CA2211 warnings

* Address review comments

* Address dotnet format CA2208 warnings properly

* Make ProcessResult readonly

* Address most dotnet format whitespace warnings

* Apply dotnet format whitespace formatting

A few of them have been manually reverted and the corresponding warning was silenced

* Add previously silenced warnings back

I have no clue how these disappeared

* Revert formatting changes for while and for-loops

* Format if-blocks correctly

* Run dotnet format style after rebase

* Run dotnet format whitespace after rebase

* Run dotnet format style after rebase

* Run dotnet format analyzers after rebase

* Run dotnet format after rebase and remove unused usings

- analyzers
- style
- whitespace

* Disable 'prefer switch expression' rule

* Add comments to disabled warnings

* Fix a few disabled warnings

* Fix naming rule violation, Convert shader properties to auto-property and convert values to const

* Simplify properties and array initialization, Use const when possible, Remove trailing commas

* Start working on disabled warnings

* Fix and silence a few dotnet-format warnings again

* Run dotnet format after rebase

* Use using declaration instead of block syntax

* Address IDE0251 warnings

* Address a few disabled IDE0060 warnings

* Silence IDE0060 in .editorconfig

* Revert "Simplify properties and array initialization, Use const when possible, Remove trailing commas"

This reverts commit 9462e4136c0a2100dc28b20cf9542e06790aa67e.

* dotnet format whitespace after rebase

* First dotnet format pass

* Fix naming rule violations

* Fix typo

* Add trailing commas, use targeted new and use array initializer

* Fix build issues

* Fix remaining build issues

* Remove SuppressMessage for CA1069 where possible

* Address dotnet format issues

* Address formatting issues

Co-authored-by: Ac_K <acoustik666@gmail.com>

* Add GetHashCode implementation for RenderingSurfaceInfo

* Explicitly silence CA1822 for every affected method in Syscall

* Address formatting issues in Demangler.cs

* Address review feedback

Co-authored-by: Ac_K <acoustik666@gmail.com>

* Revert marking service methods as static

* Next dotnet format pass

* Address review feedback

---------

Co-authored-by: Ac_K <acoustik666@gmail.com>
2023-07-16 19:31:14 +02:00
sunshineinabox
f2847753dc Maintain functionality similar to master up to 6 cores >6 cores will make more threads. 2023-07-14 07:44:46 -07:00
sunshineinabox
e8af9144c7
Merge branch 'master' into GetPhysicalCoreCount 2023-07-14 07:38:39 -07:00
Mary
fec8291c17 infra: do not assign developers team for now
Hopefully fix PR triage for real...
2023-07-14 11:32:14 +02:00
gdkchan
c5d9e67cb2
Fix some Vulkan validation errors (#5452)
* Fix some validation errors and silence the annoying pipeline barrier error

* Remove bogus decref/incref on index buffer state

* Make unsafe blit opt-in rather than opt-out

* Remove Vulkan debugger messages blacklist

* Adjust GetImageUsage to not set the storage bit for multisample textures if not supported
2023-07-14 09:08:52 +02:00
Mary
e5261228d7 infra: Fix team name in reviewer.yml 2023-07-12 19:22:09 +02:00
Mary
e61c09bc85
infra: Fix PR triage once and for all (#5442)
Switch to a custom made python script that query GitHub API to grab latest state of the PR after label assign.
2023-07-12 18:31:08 +02:00
ealekseychik
ac2444f908
Move ShaderBinaries into individual .spv files (#5280)
* Move ShaderBinaries into individual spv files

* Rename binaries directory, remove variables and add helper method instead

* Update .csproj file

* Move ShaderBinaries into individual spv files

* Rename binaries directory, remove variables and add helper method instead

* Split shader binaries into folders, use string.Join to create filepath

* Move files back to general binaries folder

* Remove ShaderSource suffix from file names

---------

Co-authored-by: Egor Alekseychik <e.alekseychik@syberry.com>
Co-authored-by: Gabriel A <gab.dark.100@gmail.com>
2023-07-11 14:41:18 -03:00
gdkchan
9c6071a645
Move support buffer update out of the backends (#5411)
* Move support buffer update out of the backends

* Fix render scale init and remove redundant state from SupportBufferUpdater

* Stop passing texture scale to the backends

* XML docs for SupportBufferUpdater
2023-07-11 14:07:41 -03:00
sunshineinabox
f7a1f2a651 This assignment seems unnecessary 2023-07-10 21:12:34 -07:00
sunshineinabox
b7b787af16
Merge branch 'master' into GetPhysicalCoreCount 2023-07-10 21:08:17 -07:00
sunshineinabox
6b269887f2 Address Feedback 2023-07-10 21:04:55 -07:00
gleng
fa32ef9275
MacOS: Allow barriers inside a render pass for non-Apple GPUs and don't treat as TBDR (#5440)
* MoltenVK: Allow barriers inside a render pass on non-Apple GPUs

* Don't treat all non-Apple GPUs using MoltenVK as TBDR
2023-07-11 03:10:23 +02:00
gleng
7805d27e67
MacOS: Fix rendering on AMD GPUs (#5446)
* MacOS: Fix rendering on AMD GPUs

* Only disable MultiViewPort on MoltenVK for AMD GPUs
2023-07-11 03:00:19 +02:00
sunshineinabox
18bdec368e
Merge branch 'master' into GetPhysicalCoreCount 2023-07-08 07:53:38 -07:00
sunshineinabox
f9ec040ca5 Only assign physicalCoreCount when needed. 2023-07-08 07:46:43 -07:00
sunshineinabox
b5cb5c83fa Interanlly Cache value so looping continously isn't costly. Only assign physicalCoreCount when needed. 2023-07-08 07:45:09 -07:00
sunshineinabox
f4dbfe890a Merge remote-tracking branch 'origin/GetPhysicalCoreCount' into GetPhysicalCoreCount 2023-07-08 07:11:10 -07:00
TSRBerry
6c515e1822
[Ryujinx.Ava] Address dotnet-format issues (#5361)
* dotnet format style --severity info

Some changes were manually reverted.

* dotnet format analyzers --serverity info

Some changes have been minimally adapted.

* Restore a few unused methods and variables

* Silence dotnet format IDE0060 warnings

* Silence dotnet format IDE0052 warnings

* Silence dotnet format IDE0059 warnings

* Address or silence dotnet format IDE1006 warnings

* Address dotnet format CA1816 warnings

* Address dotnet format CA1822 warnings

* Address or silence dotnet format CA1069 warnings

* Make dotnet format succeed in style mode

* Address dotnet format CA1401 warnings

* Address remaining dotnet format analyzer warnings

* Address review comments

* dotnet-format fixes after rebase

* Address most dotnet format whitespace warnings

* Apply dotnet format whitespace formatting

A few of them have been manually reverted and the corresponding warning was silenced

* Format if-blocks correctly

* Another rebase, another dotnet format run

* Run dotnet format whitespace after rebase

* Run dotnet format style after rebase

* Run dotnet format after rebase and remove unused usings

- analyzers
- style
- whitespace

* Add comments to disabled warnings

* Remove a few unused parameters

* Simplify properties and array initialization, Use const when possible, Remove trailing commas

* Start working on disabled warnings

* Fix and silence a few dotnet-format warnings again

* Address IDE0260 warnings

* Address a few disabled IDE0060 warnings

* Silence IDE0060 in .editorconfig

* Revert "Simplify properties and array initialization, Use const when possible, Remove trailing commas"

This reverts commit 9462e4136c0a2100dc28b20cf9542e06790aa67e.

* dotnet format whitespace after rebase

* dotnet format pass with new editorconfig

* Fix naming style issues

* Apply suggestions from code review

Co-authored-by: Ac_K <Acoustik666@gmail.com>

* Revert one suggestion

* Second dotnet format pass and fix build issues

* Final pass of dotnet format

* Add trailing commas

* Fix formatting issues

* Keep unnecessary assignment in IconColorPicker.cs

* Use using declarations and extend resource lifetimes

* Fix rebase issues

* Adjust comment spacing

* Fix typo

* Fix naming issues

* Apply suggestions from code review

Co-authored-by: Ac_K <Acoustik666@gmail.com>

* Revert unintentional change

* Remove unused file

* Remove static keyword from ViewModels

Binding of static members doesn't work and is silently ignored.

---------

Co-authored-by: Ac_K <Acoustik666@gmail.com>
2023-07-07 23:03:27 +02:00
sunshineinabox
1500432c68 Error in previous commit "cpu cores" line was being read but not parsed. Correctly use Ryujinx logger now to actually show message. 2023-07-07 08:22:34 -07:00
sunshineinabox
44ede2c6b8 Address Feedback 2023-07-07 08:22:34 -07:00
sunshineinabox
00fee4715e Thanks to Benedani on Discord this should be correct way to get physical cores on linux now 2023-07-07 08:22:34 -07:00
sunshineinabox
21d5593446 Implement a method to get Physical Core Count and resolve pending TODO 2023-07-07 08:22:34 -07:00
sunshineinabox
916611c468 Error in previous commit "cpu cores" line was being read but not parsed. Correctly use Ryujinx logger now to actually show message. 2023-07-06 20:35:36 -07:00
sunshineinabox
d782d57ca4 Address Feedback 2023-07-06 20:24:25 -07:00
Mary
8a363b5df2
Revert "sdl: set SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS to 0 (#5433)" (#5439)
This reverts commit 2b5abac809.
2023-07-06 18:08:14 +02:00