Closed sarbian closed 9 years ago
Looks good, what kind of performance buffs do you get?
About x5 on my i7-2600k (so 8 thread)
WOW! Ok. I'll run some tests when I get home. If it runs as well as you say, then I think we have a winner, and lots more credit to sarbian!
Hmmm... did you run KSP after caching? I just tried this out and the textures look like they were filled with stack garbage... I'm wondering if the byte pointers don't transfer nicely between threads?
Ah, looks like there was a minor issue in the calculation for the storage pointer.
oh, I launched it with some flag and they looked fine. Well, you found the bug anyway :)
With a limit of 1 thread per CPU thread (8 for a 4 core i7)
Using ThreadPool does not make the best looking code but it works fine.