That-One-Nerd / SrcMod

SrcMod *will be* a command-line Source Engine modding tool.
2 stars 0 forks source link

Replace busy waiting for command to complete with a callback. #47

Open That-One-Nerd opened 1 year ago

That-One-Nerd commented 1 year ago

Currently, the shell executes commands on a separate background thread and busy waits until completion. This wastes CPU cycles and can be improved by adding a callback to the background worker's completion.

That-One-Nerd commented 1 year ago

This is currently delayed because for one, the current system actually uses far less processing than I expected and using a callback would require a bunch of asynchronous joining which I don't like on a good day.