stride icon indicating copy to clipboard operation
stride copied to clipboard

Unblock logic from freezing

Open ParadiseFallen opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. When you drag your window or resize it game logic stop processing. Its not good. I can live with blocking rendering. But systems must work when you drag window.

It is a bug.

It made networking much harder bc you will loose messages each time when drag. it will cause disconnections / desyncs. Also it's good practice when your game logic running permanently

Describe the solution you'd like Run game logic independently.

Additional context After researching i found how to fix that issue. Example for SDL: https://pastebin.com/FGqiXhj2

Here are some questions that can aid in the description of the feature request:

What are the usecases?

  • networking

What kind of options/settings are expected/wanted?

  • i can update source code for both sdl and winforms to use that

What would the (pseudo) code look like?

  • pastebin. actual code for SDL. https://pastebin.com/FGqiXhj2

Is the feature affecting behaviour in the editor?

  • not editor related

Is there a component or datastructure?

  • engine lifecycle

what kind of documentation is needed or needs to be updated?

  • nothing. just mention it in release notes

Should there be an example project?

  • no

This is also solution for #709

ParadiseFallen avatar Jul 27 '22 20:07 ParadiseFallen

  • pastebin. actual code for SDL. https://pastebin.com/FGqiXhj2

Thanks for looking into it! Could you open a pull request so we can see a proper diff of the changes in the file?

tebjan avatar Jul 27 '22 21:07 tebjan

@tebjan Yes. i will do it tommorow (today but not now). Im tired for a long day and thats all what i can provide for now. Ull get PR tommorow

ParadiseFallen avatar Jul 27 '22 21:07 ParadiseFallen

@tebjan https://github.com/ParadiseFallen/stride/blob/e7720bf3752995c18aa3f4ef5ae57256ca50317b/sources/engine/Stride.Games/SDL/SDLMessageLoop.cs#L196

ParadiseFallen avatar Jul 28 '22 17:07 ParadiseFallen

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request

tebjan avatar Jul 28 '22 18:07 tebjan

https://github.com/stride3d/stride/pull/1486 @tebjan

ParadiseFallen avatar Jul 28 '22 18:07 ParadiseFallen

conversation will goes into https://github.com/stride3d/stride/issues/1488

ParadiseFallen avatar Aug 27 '23 14:08 ParadiseFallen