Hello everyone and welcome to another friday progress post.
On the last week topic, i have finished first simple news system. At this stage it works good, but newsline speed probably needs tweaking. Newsline works okay with different languages correctly calculating end of the localized text.
Note: gif is trimmed
Event system in the end will affect a lot of things, so i will do it in a small iterations with focus on one event type at a time.
And finally promised things about node management.
I really can’t recall why i come to this solution in a first place. Problem was that at big number of animals nodes (more than 30 animals), some of them was disappearing with warning, that max number of nodes was exceeded. I tryied to optimize nodes, putting everything in different layers and so on. I managed to increase this fallout number up to 40 animals, but it was still not good. In the end i decided to just “draw” nodes that fits in current scroll view. I wrote a simple function (which was rewritten several times), that checks if nodes “ends” are in the view. If it is - draw it, otherwise do not draw. Here is the example:
I am sure there are different ways to overcome my problem, which are probably much simpler and easier, but in my case, this system helped me later, when i encountered Stencil buffer exceeded, clipping will not work as expected warning. I wanted to create round progress bars, so i used several stencil mask to achieve it, but when there is a big node with several progress bars they all fill stencil buffer. And as node is drawn as one entity, progress bars which are not visible still are drawn. So i started to draw “subtasks” with the system which i used for nodes: if this bar visible draw. Here is the how player see it:
And how system draw subtasks with progress bars:
Progress bars are not visible on this gif, sorry
And that’s it for today. Thank you for your attention. See you next week.