MechWarrior99
MechWarrior99
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
(Obserivables, not the implementation)
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
Oh weird...
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
Cool, I'll take a look. That is one thing that has made it hard for me is finding actual examples of observables that didn't have a bunch of other unrelated stuff tacked on that was doing stuff behind the scenes.
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
Yeah, makes sense.
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
I'm still struggling to fully grasp observables, which probably doesn't help some stuff
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
Fair enough.
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
Fair enough, to each their own really. If you take declarative UI out of the equation. Any thoughts on MVU pattern and implementing it?
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
I appreciate it! the links!
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
Interesting to know about how XAML does fancy stuff to be faster. Good to know!
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
Haha, it is actually just for doing a custom UI framework (for fun and learning new things)
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
Basically, I just like the MVU pattern better. I guess you could do it with pooling, and 'resetting' the elements/widgets when releasing them. But I guess it would still be rather slower than just doing the normal way of updating elements.
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
They aren't difficult, they just feel really clunky to me.
39 replies
CC#
Created by MechWarrior99 on 1/18/2025 in #help
Would a Declarative Reactive UI be too expensive?
That is kinda what I was assuming the case would be. The big upside that I like is that it makes 'binding' so easy and straight forward, more like immediate mode UIs.
39 replies
CC#
Created by MechWarrior99 on 1/5/2025 in #help
What's the right UI framework pattern?
I was trying to look at what thing like Comet , ReactMAUI and ReactJS do, but truth be told I didn't fully follow and didn't seem to fit.
59 replies
CC#
Created by MechWarrior99 on 1/5/2025 in #help
What's the right UI framework pattern?
I don't think so, as I want to be able to support like radial layout or stacks etc.
59 replies
CC#
Created by MechWarrior99 on 1/5/2025 in #help
What's the right UI framework pattern?
Yeah guess so. The thing I do like about normal IMGUI is not having to manage the state of the elements, like if you select a 'tab' you don't have to 'unselect' another 'tab'.
59 replies
CC#
Created by MechWarrior99 on 1/5/2025 in #help
What's the right UI framework pattern?
But then the question is I think is if the extra complexity is worth the performance. My thinking originally with the structs was to re-create them each frame. But I guess that would really be not the best performance wise probably.
59 replies
CC#
Created by MechWarrior99 on 1/5/2025 in #help
What's the right UI framework pattern?
Oh that is different than what I thought you were saying. But I either way I see what you are saying.
59 replies
CC#
Created by MechWarrior99 on 1/5/2025 in #help
What's the right UI framework pattern?
Right, but to do that would need to have like a ILayout { void Layout(Size size); } interface that components/widgets implement. Which kind of is not great for performance on structs.
59 replies
CC#
Created by MechWarrior99 on 1/5/2025 in #help
What's the right UI framework pattern?
Makes sense to do a component-per-layout type, but when you go to evaluate a entity, how do you know which layout it has? Can't really do all of the VerticalStack layout components and then all the Grid layout components since the child entities sizes rely on the parents*
59 replies