Jump to content

Recommended Posts

Posted

Currently camera may stay when it's not intended. Could be cases when camera component/script have interface and it will be a circular reference and they will stuck in memory when scene is cleared.

Should be weak_ptr as Interface member with GetCamera method to return shared version for internal needs.

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

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

  • Dreikblack changed the title to Inteface should not have shared_ptr for Camera
Posted

Maybe. I will have to investigate this in detail. I suppose if the camera goes out of scope, the UI won't render anyways, so there's probably no harm in just letting it silently stop drawing.

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...