Change sleep(0) to sleep(0.05) for CraftOS-PC #54
Reference in New Issue
Block a user
Delete Branch "patch-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CraftOS-PC handles sleep(0) by not sleeping at all, which makes icon animations go too fast to actually see. Changing this will fix animations in CraftOS-PC, while not changing how it acts in other (more accurate) emulators.
Would 0.01 work ? Wouldn't want to miss ticks when the tick rate is lower than 20/s.
I think you mean 0.1, right?
A single tick is for 0.05 seconds, so changing the number to 0.05 would just give parity between ccemux and craftos-pc, right? Changing it to 0.1 would slow animations to half the speed they currently play at.
I don't know if the issue is just with 0 - that's why I suggested .01 - this would not affect animation speed and is > 0
I should have been more specific -- what I meant to say was that CraftOS-PC is completely untethered by Minecraft ticks, so if you try sleeping for 0.01 seconds, it will actually sleep for 0.01 seconds instead of 0.05, as CCEmuX or CC:Tweaked would.
There should be ways around this issue for that emulator - not going to change as it could affect animation speed in normal mc
Pull request closed