Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor atlas support #71

Merged
merged 9 commits into from
Apr 17, 2023
Merged

Editor atlas support #71

merged 9 commits into from
Apr 17, 2023

Conversation

Jhonnyg
Copy link
Contributor

@Jhonnyg Jhonnyg commented Apr 17, 2023

Requires Defold 1.4.5+

@Jhonnyg Jhonnyg requested review from JCash and matgis April 17, 2023 09:50
Copy link
Contributor

@matgis matgis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could perhaps do a better job of caching in the editor code, but we could address that later. Looks good to merge.

(let [pass (:pass render-args)
render-groups (collect-render-groups renderables)]
(doseq [group render-groups]
(plugin-update-file (:handle group) 0.0 (:texture-set-pb group)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems very expensive to do on every render call. Shouldn't we try to cache it as an output on the RiveModelNode?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, sounds good 👍

case DRAW_MODE_CLIP_INCR:
dmLogInfo(" DRAW_MODE_CLIP_INCR");
break;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to have this log spam in the render function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eeeh oops, no!

@Jhonnyg Jhonnyg merged commit c48e85b into main Apr 17, 2023
@Jhonnyg Jhonnyg deleted the editor-atlas-support branch April 17, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants