Geoffrey McRae
83592f7e4a
[client] cleanup of renderer API for better usage
...
* Added new on_render_start for render initialization
* Changed on_resize to execute inside the render thread
2018-07-28 14:49:37 +10:00
Geoffrey McRae
13cd50f92c
[client] disable multisample after logo is gone
...
We only use multisample to smooth out the edges of the LG logo, it is
pointless to leave it on after the logo is gone.
2018-07-28 10:36:41 +10:00
Geoffrey McRae
05bd587c74
[client] implemented initial slow yuv420 support
2018-07-28 08:41:39 +10:00
Geoffrey McRae
60070e6076
[client] implement stream paused alert
2018-07-24 01:09:53 +10:00
Geoffrey McRae
d839026ade
[opengl] added fade out to wait screen
2018-07-20 01:01:16 +10:00
Geoffrey McRae
34de213926
[opengl] render alerts and fps on wait screen
2018-07-20 00:10:29 +10:00
Geoffrey McRae
b5ec4dd305
[client] scale up the logo and put a gradient behind it
2018-07-19 23:48:35 +10:00
Geoffrey McRae
023d3f811b
[client] render the looking glass logo (almost)
2018-07-19 23:33:51 +10:00
Geoffrey McRae
53c32cc5a4
[client] enable multisampling
2018-07-19 23:33:26 +10:00
Geoffrey McRae
eb6ee8ea46
[client] allow window resize event's before startup
2018-07-19 23:32:42 +10:00
Geoffrey McRae
14954cc426
[client] fix too early release of OpenGL context
...
Fixes a problem where resolution changes would require a restart of
the client
2018-05-31 18:54:29 +10:00
Geoffrey McRae
fbbee1cdac
[opengl] added support for alerts
2018-05-29 11:08:25 +10:00
Geoffrey McRae
a647a602bf
[opengl] render a blue screen while waiting for sync
2018-05-28 15:30:31 +10:00
Geoffrey McRae
882b31aeaa
[client] add support for masked colour cursors ( fixes #61 )
...
Also allows early SDL usage for cursor and keyboard control before
the host application starts
2018-05-28 11:40:56 +10:00
Geoffrey McRae
b3aadccfc4
[client] use glFinish to prevent buffering and re-enable by default
2018-05-21 23:16:16 +10:00
Geoffrey McRae
adb1ca58b9
[opengl-basic] removed basic renderer as it is no longer needed
2018-05-16 18:13:20 +10:00
Geoffrey McRae
cf4d16b528
[opengl] numerous improvements to buffer transfer
2018-05-16 17:58:36 +10:00
Geoffrey McRae
4fd59ce8c9
[opengl] fix free bug with new contiguous buffer
2018-05-15 19:25:22 +10:00
Geoffrey McRae
adca879fb9
[opengl] use a single contiguous buffer for the AMD pinned buffer
2018-05-15 19:23:57 +10:00
Geoffrey McRae
3a2d612b41
[decoders] change the API to allow more flexability in the future
2018-05-15 19:19:39 +10:00
Geoffrey McRae
332d53e016
[opengl] Add support for AMD_pinned_memory if it is available
2018-05-15 13:23:44 +10:00
Geoffrey McRae
ae382949c8
[opengl] glxWaitVideoSyncSGI is not well supported in Mesa 18
...
It seems Mesa 18 has problems with the glxWaitVideoSyncSGI API so
we disable the 'preventBuffer' option by default
2018-05-15 09:54:24 +10:00
Geoffrey McRae
7648ea712c
[client] opengl: fix termination on configure failure
2018-01-04 09:25:42 +11:00
Geoffrey McRae
fbf08b94aa
[client] initial vaapi h264 decode support (unfinished)
2017-12-31 00:27:26 +11:00
Geoffrey McRae
076a45acc5
[client] added initial decoder framework
2017-12-29 22:48:21 +11:00
Geoffrey McRae
c239306d82
[client] initial support for compressed frames
2017-12-29 21:20:51 +11:00
Geoffrey McRae
db52a55b36
[client] opengl: remove deprecated glScissor, fixes FPS display
2017-12-23 17:40:50 +11:00
Geoffrey McRae
0574daca13
[client] removed unused function argument
2017-12-23 17:38:25 +11:00
Geoffrey McRae
a08aad8009
[client] opengl: don't scale the FPS readout
2017-12-21 06:50:57 +11:00
Geoffrey McRae
58ed978767
[client] opengl: switch to SDL_mutex locking
2017-12-21 01:23:25 +11:00
Geoffrey McRae
c098967293
[client] opengl: update FPS even when there is no updates
2017-12-21 01:17:45 +11:00
Geoffrey McRae
5501d22a2d
[client] fixed missed usage of new locking semantics
2017-12-21 01:03:21 +11:00
Geoffrey McRae
2f6b7e08f8
[client] define locking types and semantics to allow for alt methods
2017-12-21 00:58:16 +11:00
Geoffrey McRae
695822bd6d
[client] redesign of the renderer archiceture for mt support
...
This is the first of two commits that completely turn the rendering code
on it's head. This change set decouples the guest's capture rate from
the host's render rate for both cursor and frame updates. This helps
prevent the host application from stalling when waiting for frame draws
when all it want's to do is send cursor updates.
* Breaks OpenGL-Basic for now
2017-12-20 00:53:45 +11:00
Geoffrey McRae
8b25f8a344
[client] opengl: show actual FPS seperate from updates per second (UPS)
2017-12-19 12:17:50 +11:00
Geoffrey McRae
133d8ec21f
[client] opengl: added preventBuffer option
2017-12-19 11:02:35 +11:00
Geoffrey McRae
c38e38d43d
[client] opengl: add splitmouse option
...
This feature was previously hardcoded enabled, it is now optional as
some hardware pipelines stall with the excessive flushes resulting in a
jumpy cursor. Default is disabled and may be re-enabled with
`-o opengl:splitmouse=1` or `-o opengl-basic:splitmouse=1` depending on
the renderer selected.
2017-12-19 10:21:45 +11:00
Geoffrey McRae
0ac1992019
[client] add new OpenGL-Basic renderer
...
This is based on bf8da7fd7e4397fe9931e82e52753806f1eee7e0 by @kiljacken
Per issue #11 on some cards this method performs much better then the
persistant buffering used in the standard OpenGL renderer.
Closes #11
2017-12-17 23:32:08 +11:00
Geoffrey McRae
5305ec5dd1
[client] opengl: made vsync option function again
2017-12-17 23:24:58 +11:00
Geoffrey McRae
424dc8bb13
[client] add renderer option list
2017-12-17 22:33:02 +11:00
Geoffrey McRae
06e38d897d
[client] implemented renderer specific option API
...
Please note the vsync and mipmap options are now specific to OpenGL
To configure them use the following options:
-o opengl:mipmap=1
-o opengl:vsync=0
2017-12-17 22:21:59 +11:00
Geoffrey McRae
deee61efa9
[client] cosmetics
2017-12-17 20:16:43 +11:00
Geoffrey McRae
287b983d27
[client] opengl: fixed broken mipmap logic
...
mipmapping is turned off for images that are scaled up a it degrades the
output quality.
2017-12-16 11:25:01 +11:00
Geoffrey McRae
7bfed41523
[client] opengl: update mouse draw time when doing decoupled draws
2017-12-15 17:03:51 +11:00
Geoffrey McRae
9bb66b7bd6
[client] opengl: decouple mouse updates from vsync
2017-12-15 16:58:21 +11:00
Geoffrey McRae
f7420317f1
[client] opengl: mouse shape updates bypass the draw timeout
2017-12-15 16:53:26 +11:00
Geoffrey McRae
c1379a45d2
[client] opengl: increase maximum mouse draw frequency
2017-12-15 16:34:29 +11:00
Geoffrey McRae
9c03327701
[client] opengl: added back double buffering and vsync support
...
This adds back in double buffering and vsync support. This has been
carefully implemented so that the render function blocks until the video
card reports that it has advanced a frame, this ensures that the OpenGL
pipeline never buffers frames.
2017-12-15 16:21:38 +11:00
Geoffrey McRae
3c61814c56
[client] windows cursors are in BGRA format
2017-12-15 10:20:20 +11:00
Geoffrey McRae
ead48195db
[client] opengl: use the stride rather then rect width for padded widths
2017-12-14 20:35:36 +11:00
Geoffrey McRae
3fa9f371b4
[client] added license to opengl.c
2017-12-14 20:06:48 +11:00
Geoffrey McRae
8ec4abc544
[client] adjusted renderer interface to allow for APIs such as Vulkan
2017-12-14 17:42:59 +11:00
Geoffrey McRae
7b64d35cd1
[client] corrected path to SDL2_ttf header
2017-12-14 16:09:39 +11:00
Geoffrey McRae
8c2709a3f4
Revert "[client] disable hacky vsync code now we are single buffering"
...
This reverts commit d55f0bf841
.
2017-12-14 10:40:51 +11:00
Geoffrey McRae
d55f0bf841
[client] disable hacky vsync code now we are single buffering
2017-12-14 10:35:38 +11:00
Geoffrey McRae
dd0930d265
[client] our source is vairable frame rate, we can't double buffer at all
2017-12-14 10:30:55 +11:00
Geoffrey McRae
04f7800df4
[client] remove silly wait logic
2017-12-14 10:12:31 +11:00
Geoffrey McRae
9d29b1195d
[client] treat buffers correctly
2017-12-14 10:06:22 +11:00
Geoffrey McRae
2374b1a9fb
[client] make methods static inline
2017-12-14 08:23:58 +11:00
Geoffrey McRae
a7180a5609
[client] another try at better screen sync
2017-12-14 06:54:53 +11:00
Geoffrey McRae
81f4a7fade
[client] slow down mouse updates to something reasonable
2017-12-14 04:18:30 +11:00
Geoffrey McRae
371f7ce535
[client] cosmetics
2017-12-13 20:44:58 +11:00
Geoffrey McRae
a6b253197f
[client/opengl] removed extra calls to make the context current
2017-12-13 14:26:31 +11:00
Geoffrey McRae
b5cb796b7c
[client] changed opengl to process every frame
2017-12-13 14:10:24 +11:00
Geoffrey McRae
d0e5bd02bd
[client] use lists to draw the cursor
2017-12-13 13:10:32 +11:00
Geoffrey McRae
85c83d2417
[client] enable vsync again but draw to front for cursor updates
2017-12-13 05:55:01 +11:00
Geoffrey McRae
d2957228ef
[client] added monochrome cursor support
2017-12-13 04:49:43 +11:00
Geoffrey McRae
b5a5d4cda2
[common/client] add pitch to cursor shape structure
2017-12-13 04:42:09 +11:00
Geoffrey McRae
c36e948bdb
[client] added RGB cursor support
2017-12-13 03:51:25 +11:00
Geoffrey McRae
a950f7b187
[client] added initial code for rendering the cursor shape
2017-12-13 03:08:38 +11:00
Geoffrey McRae
5cfae05cae
[client] corrected screen resize bug and incorrect scissor
2017-12-13 02:28:41 +11:00
Geoffrey McRae
893bb7e603
[client] huge rewrite of renderer API deal with mouse updates
2017-12-13 02:22:47 +11:00
Geoffrey McRae
ce278d17a7
[client] print out video card information
2017-12-12 03:59:58 +11:00
Geoffrey McRae
5863160c69
[client] fixed incorrect usage of glXWaitVideoSyncSGI
2017-12-12 03:59:58 +11:00
Geoffrey McRae
7574e03d86
[client] fixed out by one error on frame sleep sync
2017-12-12 03:59:58 +11:00
Geoffrey McRae
8adf7cbacd
[client] remove debug print
2017-12-12 03:59:58 +11:00
Geoffrey McRae
0ad1f21ffb
[client] renderer interface improvements and use gl lists for opengl
2017-12-12 03:59:58 +11:00
Geoffrey McRae
fcfea1b65d
[client] fixed basic renderer
2017-12-12 03:59:58 +11:00
Geoffrey McRae
e6a21d1049
[client] implemented SGI_video_sync for better frame sync
2017-12-12 03:59:58 +11:00
Geoffrey McRae
31c9693cbf
[client] move remaining opengl code into the opengl renderer
2017-12-12 03:59:58 +11:00
Geoffrey McRae
79dffa047f
[client] dont mipmap when enlarging smaller screens
2017-12-12 03:59:58 +11:00
Geoffrey McRae
c1a82e853d
[client] added renderer abstratction
...
This moves the bulk of the rendering code into seperate rendering
modules cleaning up much of intertwined SDL & OpenGL mess.
2017-12-12 03:59:57 +11:00