David Anderson
David Anderson
I forget if we talked about this publicly, but probably the best thing moving forward is to perform all queries off the main thread. Then the "threaded" versions simply become...
I guess we should use realpath() or something.
If you can reproduce this on Linux, you could try running your server within valgrind to catch the error. If that's not an option we could add a way to...
A global callback for when commands are registered or unregistered sounds acceptable. But it could be very spammy, so I think it would need to be an opt-in thing (eg,...
If you want to be very strict, you can do: ``` stock bool IsStringFloat(const char[] str) { float result; return StringToFloatEx(str, result) == strlen(str) && !IsStringInt(str); } ``` But I'm...
I'll try to answer this in terms of SourceMod, since that's what drives SourcePawn development. Threads: maybe, but it's a huge can of worms. No one is going to start...
It'd also help to understand what people want to do with threads in SourceMod, and we can figure out how to best accommodate those use cases.
Again, you'd be limited to data structures and native calls that have no main thread interaction. So if your goal is to off-load main thread work, fibers serve no purpose....
The reason for no main thread interaction is that it's not safe to swap the context of the main thread and then start poking at it. It might be safe...
That gets you the very next frame, but I guess that wouldn't tell you anything about how "busy" the frame is. It'd be enough to divvy up work though, so...