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
f3e19b743c
[client] added ability to pass options to renderers
2017-12-17 20:32:44 +11:00
Geoffrey McRae
deee61efa9
[client] cosmetics
2017-12-17 20:16:43 +11:00
Geoffrey McRae
71c7f30265
[client] added -Q feature to prevent accidental applicaiton closure
...
Closes #21
2017-12-17 20:11:52 +11:00
Geoffrey McRae
3784e9c06f
[client] added support for new header format
2017-12-17 05:21:02 +11:00
Geoffrey McRae
2bb8b0227c
[client] don't send renderer mouse events until it's configured
2017-12-15 19:14:02 +11:00
Geoffrey McRae
ae4156d041
[client] don't update mouse scaling values until started
2017-12-15 19:14:02 +11:00
Geoffrey McRae
0d8b2449cf
[client] added back missing vsync disable option
2017-12-15 16:19:47 +11:00
Arti Zirk
d1bd5b3115
Do not minimize fullscreen window on focus loss
2017-12-15 15:59:28 +11:00
Jack Karamanian
e03621a622
[client] Add borderless fullscreen usage
2017-12-15 15:59:09 +11:00
Jack Karamanian
606da0ae47
Add borderless fullscreen option
2017-12-15 12:59:34 +11:00
Geoffrey McRae
b6c8136565
[client] initialize the local header copy for proper startup
2017-12-15 12:02:37 +11:00
Geoffrey McRae
8ae9f8464b
[client] updated client to support new KVMFR cursor dataPos field
2017-12-15 10:51:40 +11:00
Geoffrey McRae
2ae9b479f6
[client] update window dimensions when the spice client is disabled
2017-12-14 20:09: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
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
d8a80a1cfc
[client] move startup later as DXGI stalls when nothing is going on
2017-12-14 10:08:47 +11:00
Geoffrey McRae
9d29b1195d
[client] treat buffers correctly
2017-12-14 10:06:22 +11:00
Geoffrey McRae
7986350cb8
[client] switch to polling mode to fix stutting issues
2017-12-14 02:24:18 +11:00
Geoffrey McRae
afff50dfde
[client] don't try to realign the mouse until we know where the mouse is
2017-12-13 22:05:47 +11:00
Geoffrey McRae
233b7755ae
[client] moved host startup sync before window creation
2017-12-13 21:57:01 +11:00
Geoffrey McRae
3bc2506d92
[client] added clean client restart mechanisim
2017-12-13 21:08:35 +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
e7511b30bb
[client] kick the guest before waiting for updates
2017-12-13 05:28:53 +11:00
Geoffrey McRae
b5a5d4cda2
[common/client] add pitch to cursor shape structure
2017-12-13 04:42:09 +11:00
Geoffrey McRae
a950f7b187
[client] added initial code for rendering the cursor shape
2017-12-13 03:08:38 +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
301d394f50
[client] updates for new protocol and vsync disable method
2017-12-12 08:08:14 +11:00
Geoffrey McRae
219179b375
[misc] added website url to sources
2017-12-12 04:30:47 +11:00
Geoffrey McRae
9f790ff51d
[client] corrected polling logic
...
Calculating the pollDelay for the next frame is impossible as the
frame rate is determined by the host application's capture API and
may wildly vary.
2017-12-12 03:59:58 +11:00
Geoffrey McRae
3d462928a6
[client] added git version to build
2017-12-12 03:59:58 +11:00
Geoffrey McRae
e2c1f1cd77
[client] set the compositor bypass hint
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
5e9885bec1
[client] apply fps limiter when presentation time is too low
2017-12-12 03:59:58 +11:00
Geoffrey McRae
421b091448
[client] Added fontconfig for font path detection
2017-12-12 03:59:58 +11:00
Geoffrey McRae
a4d8fd2237
[client] added rate limiting to failed kicks (guest not ready)
2017-12-12 03:59:58 +11:00
Geoffrey McRae
3899556cbf
[client] added extra sanity checks to the header's data format
2017-12-12 03:59:58 +11:00
Geoffrey McRae
0ccb38940e
[client] make autoResize work again
2017-12-12 03:59:58 +11:00
Geoffrey McRae
59a894ae04
[client] switched srcRect to srcSize and type to SDL_Point
2017-12-12 03:59:57 +11:00
Geoffrey McRae
34f07ec77f
[client] minor logical order optimization of the render loop
2017-12-12 03:59:57 +11:00
Geoffrey McRae
1d5f98db32
[client] adjusted presentation time to be more accurate
2017-12-12 03:59:57 +11:00
Geoffrey McRae
032602f336
[client] reworked the polling logic yet again
2017-12-12 03:59:57 +11:00
Geoffrey McRae
eb52ee9412
[client] added retard/resync counts for debugging
2017-12-12 03:59:57 +11:00
Geoffrey McRae
d09bb1146d
[client] removed unused useBufferStorage app state variable
2017-12-12 03:59:57 +11:00
Geoffrey McRae
ea5d0ddfe0
[client] removed deprecated option to disable GL_ARB_buffer_storage
2017-12-12 03:59:57 +11:00
Geoffrey McRae
852309464f
[client] more polling improvements
2017-12-12 03:59:57 +11:00
Geoffrey McRae
32c6989654
[client] removed debugging print
2017-12-12 03:59:57 +11:00
Geoffrey McRae
7349334811
[client] reworked polling logic and added GPU magic
...
SDL_RenderPresent calls SwapBuffers which doesn't block even with vsync
enabled until the driver/gpu has buffered several frames, this is no good
for our use case where low latency is of ultimate importance. This patch
measures the swap interval, ensures the time is consumed and then calls
glFinish to ensure that there is no buffered data. The results on NVidia
hardware are exceptional, but will need verification on AMD hardware.
Polling logic has also been improved, the client will hunt for the best
delay rather then resorting to waiting on an event from the guest, avoiding
scheduler latency caused by waiting on the irq event.
2017-12-12 03:59:57 +11:00
Geoffrey McRae
01d4d52355
[client] removed useless delay functions
2017-12-12 03:59:57 +11:00
Geoffrey McRae
e1a566bcad
[client] reworked sync code to use polling for short delays
2017-12-12 03:59:57 +11:00
Geoffrey McRae
a1f574ff2f
[client] added 1ms delay loop for incoming polling support
2017-12-12 03:59:57 +11:00
Geoffrey McRae
2d5b633397
[client] changed ivshmem wait timeout to avoid stalls on startup
2017-12-12 03:59:57 +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
Geoffrey McRae
310dba3620
[client] fixed incorrect texSize calculation
2017-12-12 03:59:57 +11:00
Geoffrey McRae
10e6408022
[misc] common and client project rename to "Looking Glass"
...
See: https://forum.level1techs.com/t/headless-pci-passthrough-program-name-vote/121779/36
2017-12-12 03:59:57 +11:00
Geoffrey McRae
3156c0e0cb
[client] corrected event processing
...
SDL_WaitEvent is useless as it runs in 10ms increments, which is way
too slow for high rate of input applications.
2017-12-12 03:59:57 +11:00
Geoffrey McRae
b61ba15a9c
[client] fixed realignment when in server mode
2017-12-12 03:59:56 +11:00
Geoffrey McRae
62ab543720
[client] fixed incorrect kick timing
2017-12-12 03:59:56 +11:00
Geoffrey McRae
14efdf7314
[client] cleanup of vbo and texture allocation
2017-12-12 03:59:56 +11:00
Geoffrey McRae
7638925387
[client] code cleanup
2017-12-12 03:59:56 +11:00
Geoffrey McRae
aa191f6c90
[client] added option to show host cursor for latency testing
2017-12-12 03:59:56 +11:00
Geoffrey McRae
7ef55134ef
[client] enable support for dynamic vsync
2017-12-12 03:59:56 +11:00
Geoffrey McRae
9590b58f0f
[client] only init ttf if fps is enabled
2017-12-12 03:59:56 +11:00
Geoffrey McRae
f2216168f4
[client] make FPS counter more accurate
2017-12-12 03:59:56 +11:00
Geoffrey McRae
a7c4cdcea1
[client] add option to disable vsync
2017-12-12 03:59:56 +11:00
Geoffrey McRae
aef0328050
[client] added FPS counter
2017-12-12 03:59:56 +11:00
Geoffrey McRae
7bf35e44c5
[client] fixed missing getopt character for input scaling
2017-12-12 03:59:56 +11:00
Geoffrey McRae
695a7b183f
[client] fix output offset when aspect ratio changes
2017-12-12 03:59:56 +11:00
Geoffrey McRae
8fdb86ae28
[client] only recalculate scales on screen or guest resize
2017-12-12 03:59:56 +11:00
Geoffrey McRae
9831de92e1
[client] add mouse input scaling feature for stretched/scaled windows
2017-12-12 03:59:56 +11:00
Geoffrey McRae
2c7e7a0a0b
[client] made help for new resize option clearer
2017-12-12 03:59:56 +11:00
Geoffrey McRae
a3572b2188
[client] added option to prevent window resize
2017-12-12 03:59:56 +11:00
Geoffrey McRae
b9e3db1971
[client] enable mipmapping by default
2017-12-12 03:59:56 +11:00
Geoffrey McRae
86cf7a9cf1
[client] add the ability to maintaint the aspect ratio
2017-12-12 03:59:56 +11:00
Geoffrey McRae
f767f32a32
[client] syncronization improvements
2017-12-12 03:59:56 +11:00
Geoffrey McRae
a84480470c
[client] cosmetics
2017-12-12 03:59:56 +11:00
Geoffrey McRae
c75e7a0f2b
[client] explcit flush buffers before using them
2017-12-12 03:59:56 +11:00
Geoffrey McRae
638f836927
[client] copy the header and kick the guest early
2017-12-12 03:59:56 +11:00
Geoffrey McRae
e8ac71263b
[client] dont send up events if we didn't send a down event
2017-12-12 03:59:56 +11:00
Geoffrey McRae
4829c0413c
[client] additional security changes
2017-12-12 03:59:56 +11:00
Geoffrey McRae
5a9688cd47
[client] added mipmapping support
2017-12-12 03:59:56 +11:00
Geoffrey McRae
f6bc62647f
[client] fixed autoResize behaviour
2017-12-12 03:59:56 +11:00
Geoffrey McRae
f8d61da618
[client] default client size to something more reasonable
2017-12-12 03:59:55 +11:00
Geoffrey McRae
cae4fa3aa6
[client] allow texture stretch when in GL buffer mode
2017-12-12 03:59:55 +11:00
Geoffrey McRae
c0507f5a15
[client] fix incorrect texture buffer index
2017-12-12 03:59:55 +11:00
Geoffrey McRae
bed2d95ccd
[client] added checks for invalid offsets by the guest
2017-12-12 03:59:55 +11:00
Geoffrey McRae
e2160a5eda
[client] Added window positional options
2017-12-12 03:59:55 +11:00
Geoffrey McRae
52ad00fb0d
[client] added client configuration options
2017-12-12 03:59:55 +11:00
Geoffrey McRae
4731b13a03
[client] initial parameter implementation
2017-12-12 03:59:55 +11:00
Geoffrey McRae
34e67b1b57
[client] added KVMGFX_HEADER_VERSION define
2017-12-12 03:59:55 +11:00
Geoffrey McRae
72b69a6659
[client] removed DrawFunc typedef
2017-12-12 03:59:55 +11:00
Geoffrey McRae
e774a0bb06
[client] removed deprectaed drawFunc and improved error handling
2017-12-12 03:59:55 +11:00
Geoffrey McRae
b221382420
[client] removed deprecated compression functions
2017-12-12 03:59:55 +11:00
Geoffrey McRae
96ae755856
[client] state struct rename
2017-12-12 03:59:55 +11:00
Geoffrey McRae
74403cce8c
[client] kick the guest early to get the first frame faster
2017-12-12 03:59:55 +11:00
Geoffrey McRae
249801b52b
[client] fixed RGB support
2017-12-12 03:59:55 +11:00
Geoffrey McRae
d1ef8d204a
[client] Added GL_ARB_buffer_storage support
...
This improves client performance by 4x if the video driver supports
this extension. OpenGL 4.1 is required for this feature to be used
2017-12-12 03:59:55 +11:00