TMTH Posted January 31, 2017 Share Posted January 31, 2017 I'm trying to understand how to work with group caching. Here is PG http://babylonjs-playground.com/#1VRAA#1 And I can't figure out the following - why setting canvas cachingStrategy to CACHESTRATEGY_ALLGROUPS leads to rendering of its' direct children only? So, every cached group have to be the direct child of canvas, or I'm missing something? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 31, 2017 Share Posted January 31, 2017 Ping @Nockawa Quote Link to comment Share on other sites More sharing options...
Nockawa Posted January 31, 2017 Share Posted January 31, 2017 Well, let's say that for now only the DONTCACHE, TOPLEVELGROUP and CANVAS are working, but it could be nice if I would spent some time (finally) to finish the ALLGROUP mode. By the way, you have a new "doc entry point" here: https://github.com/BabylonJS/Babylon.js/tree/master/canvas2D And the home page of the doc is still here: http://doc.babylonjs.com/overviews/canvas2d_home As you're pretty new (in the forum at least), may I ask you if you managed to find these docs? I would just like to know if I can improve things on this matter. I'll keep you in touch for the ALLGROUP mode, but right now the CANVAS level or TOPGROUP level are fine for most usage, but that's no excuse for the latest mode that's not working. I have your PG I'll reproduce it locally and debug. Quote Link to comment Share on other sites More sharing options...
TMTH Posted February 1, 2017 Author Share Posted February 1, 2017 4 hours ago, Nockawa said: I would just like to know if I can improve things on this matter Yes, I've read all the docs, and explored large part of canvas2d source code. I could suggest one improvement of documentation - strict marking of components that work now, and component that are under development. So, that one reading, for example, documentation on Group2D could see, that not all cache modes are supported right now Quote Link to comment Share on other sites More sharing options...
Nockawa Posted February 1, 2017 Share Posted February 1, 2017 Well, to be honest, this was the only major feature listed that didn't fully work. I'll try today to see what's wrong using your PG Quote Link to comment Share on other sites More sharing options...
TMTH Posted February 2, 2017 Author Share Posted February 2, 2017 And one more bug (or feature that I don't understand) for @Nockawa http://babylonjs-playground.com/#NRZYA I'm using designSize on canvas. When I change cachingStrategy on canvas, I see change in absolute position on top level primitive. Is it intended behaviour? Quote Link to comment Share on other sites More sharing options...
Nockawa Posted February 2, 2017 Share Posted February 2, 2017 Well, thanks to you I have the feeling that soon this part of Canvas2D will be bullet proof! Indeed, it's a bug, I think I'm going to use Trello again! Because you find them quicker that I can fix them. Concerning the ALLGROUP I haven't given up, it's just I'll be able to properly investigate it from this week end I think. Quote Link to comment Share on other sites More sharing options...
Nockawa Posted February 7, 2017 Share Posted February 7, 2017 @TMTH I'm on it Quote Link to comment Share on other sites More sharing options...
TMTH Posted February 9, 2017 Author Share Posted February 9, 2017 On 02.02.2017 at 6:14 PM, TMTH said: I'm using designSize on canvas. When I change cachingStrategy on canvas, I see change in absolute position on top level primitive That problem is more urgent then the first one. Because you can emulate CACHESTRATEGY_ALLGROUPS using CACHESTRATEGY_TOPLEVELGROUPS, just making fake "child" for group and manually setting it's position in response to "parent" actualPosition property changed. Thus you will have cached group, that behaves just like normal group. But when your turn on CACHESTRATEGY_TOPLEVELGROUPS using designSize, all your layout will be visually broken. And I can see no workaround for that problem. Quote Link to comment Share on other sites More sharing options...
Nockawa Posted February 9, 2017 Share Posted February 9, 2017 yes, when I said I'm on it, I meant the designSize issue. Well, in the meantime I got a more important bug to fix so it's currently paused, but I'll resume as soon as the other bug is fixed. Quote Link to comment Share on other sites More sharing options...
Nockawa Posted March 24, 2017 Share Posted March 24, 2017 I forgot to mention that this should be fixed right now. 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.