| Summary: | [PATCH] General SDL_HINT_VIDEO_DOUBLE_BUFFER hint support | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Manuel Alfayate Corchete <redwindwanderer> |
| Component: | video | Assignee: | Brandon Schaefer <brandontschaefer> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | brandontschaefer |
| Version: | 2.0.6 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Patch that adds a general hint for low-latency video in some drivers | ||
|
Description
Manuel Alfayate Corchete
2017-11-06 00:36:44 UTC
I dont have my raspi near to test for a few days. It was working on kmsdrm, and we should merge this before the other HINT is released. Wont be easy to remove the other one due to being in a public header once its been released. So Ill just double check all is compiling at lease then merge. Im not to familiar with rasberrypi code and its APIs. I dont really see where the other thread is? Does vc_dispmanx_vsync_callback callback from a different thread? Looking it up just seemed to do a dispatch (with locking but seems to happen on the same thread that calls it?). Though I could easily be missing something! (In reply to Brandon Schaefer from comment #2) > Im not to familiar with rasberrypi code and its APIs. I dont really see > where the other thread is? Does vc_dispmanx_vsync_callback callback from a > different thread? Looking it up just seemed to do a dispatch (with locking > but seems to happen on the same thread that calls it?). Though I could > easily be missing something! The vc_dispmanx_vsync_callback function is called from the dispmanx side on every frame: It starts happening when it is passed to vc_dispmanx_vsync_callback(displaydata->dispman_display, RPI_vsync_callback, (void*)wdata); Thats why you dont see it called explicitly: its automatically called from an internal dispmanx thread outside SDL2. That's how It works. I agree that merging is urgent. That makes sense, just wanted to double check, as I dont have a raspi to dig around right now. Ill double check the code in a few days when I can, Thank you again for the patch! https://hg.libsdl.org/SDL/rev/2ce56475ad57 |