Jump to content

Lua FPS template freezes if fps player have a pick in update


Go to solution Solved by Josh,

Recommended Posts

Posted

In update of fps player in window loop: FPSPlayer.lua

        local pickInfo = self.camera:Pick(framebuffer, cx, cy, 0, true)

Usually it happens in monster fight for some reason, but very randomly. Sometimes it happens when you enter in a room with first one, and another time it may not happen at all. So just try few times and you can put a player before monster trigger for faster reproducing,

Can't pause debug to see if it's in loop or something, so probably it's in the engine code. Spent hours to find out what was causing it. Steam beta.

Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5:

https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/

Posted

This is very interesting. It appears that cylinder colliders go into an infinite loop when a ray cast is performed on them. The monsters use a cylinder collider, and the reason you see a difference in behavior is probably because it only happens if you are looking right at them, so that the ray intersects them....

  • Like 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...