Skip to content

Commit

Permalink
updated thread executor mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
juliand665 committed Sep 24, 2019
1 parent e21b463 commit 1b22a8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/dynamicfps/mixin/ThreadExecutorMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
public final class ThreadExecutorMixin {
/**
* @author Julian Dunskus
* @reason The vanilla version is simply broken, taking up way too many resources in the background.
*/
@Overwrite
public void method_20813() {
public void waitForTasks() {
// yield() here is a terrible idea
LockSupport.parkNanos("waiting for tasks", 500_000); // increased wait to 0.5 ms
}
Expand Down

0 comments on commit 1b22a8a

Please sign in to comment.