PCSX2 Linux Development
#71
Hum, which things do you want to remove?
Reply

Sponsored links

#72
I was thinking about sticking std::thread and std::mutex straight into GSWorker instead of going through IGSThread and IGSLock.
"I know now why you cry... but it is something I can never do."
-Emotion Engine
Reply
#73
No don't do that! I really want to keep all thread API (win, pthread and std) for the moment. Std::thread is not supported yet on all platform. It won't kill perf anyway.
Reply
#74
OK, understood. You want me to just comment out the pthread stuff then? Or set up a third #ifdef block?
"I know now why you cry... but it is something I can never do."
-Emotion Engine
Reply
#75
Add "ENABLE_STD_THREAD" in plugins/GSdx/config.h. Then ifdef the new/old code.
Reply
#76
ok, I have written an alternate GSJobQueue. It seems to be working well. I will send a pull request.
"I know now why you cry... but it is something I can never do."
-Emotion Engine
Reply
#77
And by "well" I mean it is functional Cool

Whether it is "optimal" is yet to be determined
"I know now why you cry... but it is something I can never do."
-Emotion Engine
Reply
#78
(04-23-2014, 08:55 PM)krysto Wrote: Now that PCSX2 is on Github, I'm doing some work on the wiki:

https://github.com/ahtruex/pcsx2/wiki

Thanks for your work! Smile
Reply
#79
I put comment on github. By the way if you have some time to roughly benchmark it, it would be nice Smile
Reply
#80
After a brief benchmark unfortunately I have to report that with my new code we are actually at a slight performance loss Sad

Though as discussed on github I will go through and replace all the GS wrappers instead of just the jobqueue. This was mostly just a warm-up exercise to get comfortable working with the GSdx source.

However I have been reading on some forums that std::thread is just a wrapper for posix/win thread. If this is true, that would be a real shame, as pthread is already as close to the metal as we can get.
"I know now why you cry... but it is something I can never do."
-Emotion Engine
Reply




Users browsing this thread: 1 Guest(s)