Search found 243 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 25
by KeldorKatarn
11 Apr 2025, 16:47
Forum: General Discussion
Replies: 3
Views: 12666

Re: NoesisGUI and AI prompting

From a personal experience as a almost 15 years WPF developer: Try to figure this out yourself and only use AI to give you pointers on what to look at and how to solve problems. XAML has intricacies that will massively bite you in the butt unless you really know what you're doing. AI will produce so...
by KeldorKatarn
11 Apr 2025, 16:43
Forum: General Discussion
Replies: 13
Views: 17136

Re: Help with avoiding memory allocations

Since these are base class callbacks, I assume they could be created once in the constructor and then stored for later? I'm confused why they need to get passed along on every function call anyway. They're base class implementations. Those remain constant over the object lifetime. So what about crea...
by KeldorKatarn
08 Apr 2025, 02:35
Forum: General Discussion
Replies: 13
Views: 17136

Re: Help with avoiding memory allocations

I'm having my own issue with delegate allocation right now in another third party asset in Unity. It's one of those things in C# that's sometimes hard to avoid.

Maybe the delegates can be cached in the Extend class? Allocating them once is fine, just not again on every call.
by KeldorKatarn
05 Apr 2025, 22:44
Forum: General Discussion
Replies: 13
Views: 17136

Re: Help with avoiding memory allocations

I regards to issue https://www.noesisengine.com/bugs/view.php?id=3970 I think the problem are the delegate parameters of the methods in the Extend class. These seem to cause new delegates being allocated every time one of these is called. Which is every frame if you override one of them, which can b...
by KeldorKatarn
01 Mar 2025, 21:19
Forum: General Discussion
Replies: 4
Views: 13784

Re: Accessing child in Decorator allocates memory every frame

As I've pointed out, in the bug report, no that doesn't fix the issue
by KeldorKatarn
01 Mar 2025, 21:18
Forum: General Discussion
Replies: 13
Views: 17136

Re: Help with avoiding memory allocations

What do you mean by generic value converters? The Binding only allows to assign an IValueConverter, which has an API that works with object values for input and output. I don't think there is much we can do about it without breaking user code. I'm aware. unfortunately one of the bad legacy design r...
by KeldorKatarn
18 Feb 2025, 19:11
Forum: General Discussion
Replies: 13
Views: 17136

Re: Help with avoiding memory allocations

Could you please create a ticket for this?
It's mainly this issue: https://www.noesisengine.com/bugs/view.php?id=3970

The boxing with value converters is a bit of a pain. There's no way to support generic Value converters I assume because that breaks compatibility with WPF?
by KeldorKatarn
17 Feb 2025, 23:36
Forum: General Discussion
Replies: 4
Views: 13784

Re: Accessing child in Decorator allocates memory every frame

I reported a bug on this: https://www.noesisengine.com/bugs/view.php?id=3970 If there's a way to avoid the allocation, let me know. (It's 1.5 kB every frame, so everything but trivial) You can't see it in the callstack below of the Unity Profiler, but if you expand that further, it all happens in th...
by KeldorKatarn
17 Feb 2025, 23:32
Forum: General Discussion
Replies: 4
Views: 13784

Accessing child in Decorator allocates memory every frame

My code: public class DialogHostDecorator : Decorator { private readonly DialogHost _dialogHost = new(); public DialogHostDecorator() { AddVisualChild(_dialogHost); } /// <summary>Gets the <see cref="Visual"/> children count.</summary> protected override int VisualChildrenCount { get { ret...
by KeldorKatarn
08 Feb 2025, 12:11
Forum: General Discussion
Replies: 5
Views: 2543

Re: Good news for Rider

I just made a bug report which I think falls on your end, since it's the same for VSCode and Rider: https://www.noesisengine.com/bugs/view.php?id=3953 DesignTime height and width attributes seem to be ignored. It would be nice to see those reflect properly since having a representative size or at le...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 25