rpcsx/rpcs3/Emu
Bevan Weiss ada6db2df4
Replace ppu_module_manager Function Static with Class Static variable (static module map) (#8669)
* Replace ppu_module_manager Function Static with Class Static

Makes for a slightly 'cleaner' interface in my opinion, may also assist with adding thread read/write concurrency support in future if ever required (have left that out of this commit to match existing function).

Very slight performance improvements were seen in representative testing.
https://quick-bench.com/q/GMbgeNc-mZc21aqOKCofnbzPZvg

I didn't investigate whether static initialisation of the static_modules might actually be possible here, perhaps there's a way to do a constexpr / consteval of this.

* Fix up for old style cast syntax..

* Fixups from PR comments

Plus remove spurious type_traits include (from me) not picked up in previous PR

* Remove old code

* Update rpcs3/Emu/Cell/PPUModule.h

Co-authored-by: Eladash <elad3356p@gmail.com>

* Fix naming of static variable

Co-authored-by: Eladash <elad3356p@gmail.com>
2020-08-06 12:34:08 +02:00
..
Audio audio: rename audio channels to audio downmix 2020-07-08 21:11:23 +02:00
Cell Replace ppu_module_manager Function Static with Class Static variable (static module map) (#8669) 2020-08-06 12:34:08 +02:00
CPU PPU LLVM: Fix VMAXFP, VMINFP NaN handling 2020-08-03 15:43:00 +01:00
Io input: use left and right squircle values 2020-07-13 21:23:48 +02:00
Memory SPU/PPU reservations: Optimizations for reservation locks and check_state() (non-TSX) 2020-07-09 03:17:35 +01:00
NP Fix possible cur_ip nullptr usage in np_handler.cpp 2020-05-12 18:28:12 +02:00
RSX rsx: Improve swizzled layout detection 2020-08-05 23:23:38 +03:00
CMakeLists.txt cheat_manager: improve parser errors 2020-07-29 13:18:33 +02:00
GameInfo.h Compilation fix 2020-02-29 21:16:28 +03:00
GDB.cpp Fix various explicitness, laziness, hard codes 2020-04-12 17:29:42 +03:00
GDB.h GDB: remove wrong_checksum_exception 2019-11-08 19:27:11 +03:00
IdManager.cpp idm: Implement creation/destruction invalidation counter 2020-05-24 19:24:07 +03:00
IdManager.h IDM: Implement idm::clear<typename> 2020-06-12 22:12:36 +03:00
IPC.h Cleanup semaphore<> (sema.h) and mutex.h (shared_mutex) 2018-09-03 23:00:36 +03:00
System.cpp Add config override as cli arg: --config <path> 2020-08-03 21:31:53 +02:00
System.h Add config override as cli arg: --config <path> 2020-08-03 21:31:53 +02:00
system_config.cpp Qt: disable TSX in the config.yml if not supported 2020-05-18 17:46:31 +02:00
system_config.h PPU Precise/LLVM: Support NJ modes (#8617) 2020-07-25 07:41:41 +01:00
system_config_types.cpp audio: rename audio channels to audio downmix 2020-07-08 21:11:23 +02:00
system_config_types.h audio: rename audio channels to audio downmix 2020-07-08 21:11:23 +02:00
title.cpp Add more game window title options 2020-02-20 20:07:25 +01:00
title.h Add more game window title options 2020-02-20 20:07:25 +01:00
VFS.cpp VFS: clarify escape/unescape cannot work on paths 2020-03-14 16:01:55 +03:00
VFS.h VFS: clarify escape/unescape cannot work on paths 2020-03-14 16:01:55 +03:00