royibernthal Posted January 26, 2017 Share Posted January 26, 2017 @Nockawa Is there a point in caching a WorldSpaceCanvas(CACHESTRATEGY_TOPLEVELGROUPS) if its contents change often (e.g. text color/value changes, button state changes, etc...). In general, would you say caching is for static content or would it improve the performance of dynamic content as well? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 2, 2017 Share Posted February 2, 2017 Wow, NO replies? Holy crap! Sorry Royi. Bump bump bump. Re-pinging @Nockawa... on the off-chance that this one slipped thru the cracks. Quote Link to comment Share on other sites More sharing options...
Nockawa Posted February 2, 2017 Share Posted February 2, 2017 There were no reply on the forum because I replied to royi directly on skype! Quote Link to comment Share on other sites More sharing options...
royibernthal Posted February 2, 2017 Author Share Posted February 2, 2017 yup Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 2, 2017 Share Posted February 2, 2017 Anyone care to summarize what was said, so others can learn? thx. Quote Link to comment Share on other sites More sharing options...
royibernthal Posted February 2, 2017 Author Share Posted February 2, 2017 Quote that depends of how "often" is... if you don't use cache, everything is rendered every frame, if you cache it, it will be rendered into a texture (which is as fast as a regular render), then this content of this texture will be rendered in the main buffer. if your content changes EVERY frame, there's propbably no point. but if it's every few frames, maybe there is! there's a PerfCounter class in babylon that can be used to do advanced profiling, the only truth is there: profile both and keep the fastest one Nockawa and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.