mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
spu: Speed hacks - Do not starve PPU threads
optionally hint to the OS scheduler to give less attention to SPUs ui: Add speed 'hacks' as configurable options
This commit is contained in:
parent
4b5a30f53d
commit
df7b466656
7 changed files with 82 additions and 2 deletions
|
|
@ -1750,6 +1750,7 @@ void named_thread::start_thread(const std::shared_ptr<void>& _this)
|
|||
try
|
||||
{
|
||||
LOG_TRACE(GENERAL, "Thread started");
|
||||
on_spawn();
|
||||
on_task();
|
||||
LOG_TRACE(GENERAL, "Thread ended");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -258,6 +258,9 @@ protected:
|
|||
// Thread finalization (called after on_task)
|
||||
virtual void on_exit() {}
|
||||
|
||||
// Called once upon thread spawn within the thread's own context
|
||||
virtual void on_spawn() {}
|
||||
|
||||
public:
|
||||
// ID initialization
|
||||
virtual void on_init(const std::shared_ptr<void>& _this)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue