Search found 17 matches

  • 1
  • 2
by AnKor
16 May 2023, 13:38
Forum: General Discussion
Replies: 1
Views: 59

IView update rate vs actual FPS

Hi! We use separate threads for render and update and I was thinking about an efficient way to ensure that update rate doesn't go ahead or fall behind the actual FPS. I see that https://www.noesisengine.com/docs/Gui.Core.RenderingTutorial.html has a note: 'Update' will block if it is invoked many ti...
by AnKor
04 Apr 2023, 12:38
Forum: General Discussion
Replies: 3
Views: 359

Re: How to prevent keyboard focus from cycling?

"Contained" works. Thank you! I didn't think about it because docs say "focus returns to the first or the last item when the end or the beginning of the container is reached", so I thought it would be the same as "Cycle". Now I see that this confusion comes from Microso...
by AnKor
04 Apr 2023, 10:25
Forum: General Discussion
Replies: 3
Views: 359

How to prevent keyboard focus from cycling?

Hi! We are using Window class similar to the one in your app framework. And I'm trying to prevent the keyboard focus from cycling at its edges. I've already tried KeyboardNavigation.DirectionalNavigation="Once" or even "None" and it doesn't seem do anything. Overriding MoveFocus ...
by AnKor
22 Dec 2022, 16:05
Forum: General Discussion
Replies: 10
Views: 290

Re: Is it valid to call GUI::SetApplicationResources with a NULL pointer?

So, I figured out the memory leak issue. It is indeed a bug in our code, but a very odd one, so I suggest you to take a look into it on your side as well or at least document it. First, while picking apart literally everything inside our resources, I noticed the memory leak only happens if there are...
by AnKor
21 Dec 2022, 12:38
Forum: General Discussion
Replies: 10
Views: 290

Re: Is it valid to call GUI::SetApplicationResources with a NULL pointer?

I see. I will review our code and try with your examples when I have time.
Thanks!
by AnKor
20 Dec 2022, 17:27
Forum: General Discussion
Replies: 10
Views: 290

Re: Is it valid to call GUI::SetApplicationResources with a NULL pointer?

Let me clarify that this is not necessary because it is done automatically at shutdown time. If you are getting leaks because you are not clearing the global dictionaries, that's a bug. Hmm... our bug or yours? :) Without clearing the resources before Shutdown I see this: [NOESIS/I] Noesis Shutdown...
by AnKor
19 Dec 2022, 11:14
Forum: General Discussion
Replies: 10
Views: 290

Re: Is it valid to call GUI::SetApplicationResources with a NULL pointer?

Ok, understood.
I'll change our code to set resources to null only after closing everything before shutdown.

Thank you!
by AnKor
16 Dec 2022, 21:03
Forum: General Discussion
Replies: 10
Views: 290

Re: Is it valid to call GUI::SetApplicationResources with a NULL pointer?

In the middle. Basically the main UI is suspended (update is not called), while a loading screen is displayed and that loading screen may have its own set of resources. So it goes like this: Main UI start: SetApplicationResources(main resources); Main UI suspend: SetApplicationResources(NULL); Loade...
by AnKor
16 Dec 2022, 17:08
Forum: General Discussion
Replies: 10
Views: 290

Is it valid to call GUI::SetApplicationResources with a NULL pointer?

I believe it is not a good idea to call SetApplicationResources with a null pointer, but otherwise Noesis::Shutdown reports a memory leak, so either way I need to investigate. I noticed that some controls log an error the moment SetApplicationResources(nullptr) is called: [NOESIS/E] 'Converter<BaseC...
  • 1
  • 2