Skip to content

Commit

Permalink
supercharge dynFrame
Browse files Browse the repository at this point in the history
we now have the capacity to suggest the relative importance of a given thread. A thread can be:
- urgent, meaning it will run every frame for 15 seconds before relinquishing control
- normal, meaning it will run every frame for 20 milliseconds
- background, meaning it will run every frame for at most 2 milliseconds

Login thread is the only thread expected to be urgent, as the experience of spillover from loading screen into contentful frames kind of sucks. background priority is currently unused, though migrating snapshots & spell cache to background priority threads seems appealing

additionally, add capability for threads to indicate how much time the next action will probably take
thread runner will use that time estimate to determine if it should defer the next action until the next frame
default is 1000 ms for urgent threads, 1 ms for normal threads, and 0.5 ms for background threads
  • Loading branch information
emptyrivers committed Jul 4, 2024
1 parent 5adf2f2 commit 4cc94e7
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 101 deletions.
Loading

0 comments on commit 4cc94e7

Please sign in to comment.