diff options
author | Sven Göthel <[email protected]> | 2024-01-25 09:53:30 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-01-25 09:53:30 +0100 |
commit | 8fe39d3a524e5e580cf2667988965f1e27fed95b (patch) | |
tree | c7630c970b23ad5f6a2a5665cd8838a04b05aa58 /src/graphui | |
parent | 78812de21182e32f86a823321b017f7f6cf52ae3 (diff) |
Bug 1491: GLMediaPlayerImpl: Use a shared *GraphicsDevice for all compatible shared GLContext, removing resource restrictions
In a use case with hundreds of GLMediaPlayer instances,
this causes the application to bail out due to running out of resources.
+++
GLMediaPlayer exposes resource restrictions and locking related
with the created off-thread shared GLContext
due to its newly created NativeWindow *GraphicsDevice instance (on X11).
On the X11 platform, the *GraphicsDevice actually uses a native resource (X11 Display handle) and hence creating such device is costly and limited.
To operate an off-thread GLContext w/o actual X11 input handling,
it is *NOT* required to use a new instance.
+++
Further more, the device is using locking.
To operate an off-thread GLContext, it is *NOT* required to use locking on it
as it does not perform actual X11 input handling etc.
All operations are performed on the shared GL context.
+++
Solution is to create a shared non-locking device clone
compatible with the source.
A share counter shall determine that the last one actually gets destructed.
The usual ..
Diffstat (limited to 'src/graphui')
0 files changed, 0 insertions, 0 deletions