Advanced Peripherals

Advanced Peripherals

29M Downloads

Null Pointer Exception Crash

jig487 opened this issue ยท 0 comments

commented

Descripe

Crashed while rendering with my 3D software.
Not sure exactly what crashed it but here's what I added right before the crash in the main render loop:

while true do
local fCapS = os.time()
--3D stuff
local targetTime = (0.02/targetFPS - (os.time()-fCapS)) + os.time() --FPS cap
print(os.time(),targetTime)
while os.time() <= targetTime and os.time() > fCapS do end
end

Steps to reproduce

I guess use the code above in a loop?

Version

0.7r (Latest)

Minecraft, Forge and maybe other related mods versions

1.16.5 MC, 0.7r AP

Screenshots or Videos

No response

Crashlog/log

https://pastebin.com/sVzj3BeA