PS2DEV: std::async and threading not supported ? #779
-
|
Hello, because of the code: if there is no support for this, how could i work around this ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Hudson, in case you're still getting this linker error; so ps2sdk doesn’t support std::async or atomic operations at all—as they’re not part of the C++ stdlib for PS2. That’s why the linker can’t find __atomic_test_and_set. I suggest you call Scene::load() directly during initialization before your main loop starts. PS2 doesn’t do threading well anyway—load your geometry upfront instead. That’s the standard approach and it’ll work great for what you’re doing. |
Beta Was this translation helpful? Give feedback.
Hi Hudson, in case you're still getting this linker error; so ps2sdk doesn’t support std::async or atomic operations at all—as they’re not part of the C++ stdlib for PS2. That’s why the linker can’t find __atomic_test_and_set.
I suggest you call Scene::load() directly during initialization before your main loop starts. PS2 doesn’t do threading well anyway—load your geometry upfront instead. That’s the standard approach and it’ll work great for what you…