GithubHelp home page GithubHelp logo

Comments (3)

flibitijibibo avatar flibitijibibo commented on August 16, 2024

You can set your own filter that overrides ours, as SDL will throw out the previous filter when setting:

https://hg.libsdl.org/SDL/file/5b61e12c0a30/src/events/SDL_events.c#l480

You can pull in what FNA's doing and get the same thing, you'd just have to inline this redraw func:

https://github.com/FNA-XNA/FNA/blob/master/src/Game.cs#L591

As long as you add the filter after we've added ours you'll be fine, and because of that you can probably skip that TimeSpan.Zero check too, so it should be 100% compatible with the public API for Game.

from fna.

jeffphilp avatar jeffphilp commented on August 16, 2024

Yeah that seems to be the best, thanks for your help.
This project really is awesome.

Is that windows pumping issue just a problem in the current SDL library? or is there something fundamentally which prevents windows providing the required events?

from fna.

flibitijibibo avatar flibitijibibo commented on August 16, 2024

It appears to be a fundamental problem with Windows. I have a patch submitted to do the InvalidateRect call:

https://bugzilla.libsdl.org/show_bug.cgi?id=3307

The problem is that Windows stalls everything (but it does still send events to the WndProc) when resizing, so we'd only redraw after the user has finished resizing. I'm hoping to get the InvalidateRect part in at least, but the event timings are something that may be unfixable.

from fna.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.