summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Limit the number of decoder threads to 4Pierre Ossman2015-11-271-1/+6
| | | | | They just end up burning CPU fighting each other without much improvement to the decoding time beyond four threads.
* Throttle overlapping screen updatesPierre Ossman2015-11-275-4/+85
| | | | | We need to make sure the display server has finished reading our previous update before we overwrite the buffer with the next update.
* Consolidate how to run the FLTK loop in one placePierre Ossman2015-11-273-19/+18
|
* Propagate exceptions from worker threads back to main threadPierre Ossman2015-11-272-3/+44
|
* Estimate CPU core usage in performance testsPierre Ossman2015-11-272-35/+125
| | | | | | This is based on comparing CPU time with elapsed time, which means that the tests can be heavily influenced by other load on the test machine.
* Protect PlatformPixelBuffer from simultaneous accessPierre Ossman2015-11-272-0/+7
| | | | | The damage tracking region needs to be protected from multiple threads accessing it at once. The rest should be fine though.
* Create one decode thread for each CPUPierre Ossman2015-11-273-4/+44
| | | | | | We can start creating more decoding threads now that we handle rect ordering properly. No point in creating more threads than there are CPUs though.
* Add option to enable thread sanitizerPierre Ossman2015-11-272-0/+13
|
* Allow parallel decoding of Tight JPEG rectsPierre Ossman2015-11-272-6/+2
| | | | | | The cost is some more load on malloc(), but it should be small compared to the gains of spreading the CPU heavy JPEG decoding over multiple CPUs.
* Allow conditional dependencies between rects when decodingPierre Ossman2015-11-275-1/+80
| | | | | | Some encodings only cause dependencies between rects some of the time. Make sure we can allow parallel decoding of those rect that aren't dependent on each other.
* Decode rectangles in order if neededPierre Ossman2015-11-274-4/+15
| | | | | Some encodings must be handled in the order they are received. Make sure we respect this in the decode manager.
* Decode overlapping rectangles in orderPierre Ossman2015-11-276-3/+58
|
* Add flags member to decodersPierre Ossman2015-11-278-8/+17
| | | | | Allows us to add attributes later that affect of the decoder manager deals with the decoders.
* Make the decoder multi-threadedPierre Ossman2015-11-275-9/+258
| | | | | | | This implements the basic infrastructure for multi-threaded decoding of rects. However there is just one thread reading data and one thread decoding it. More logic is needed to safely decode multiple rects at the same time.
* Let CConnection intercept more callbacksPierre Ossman2015-11-275-0/+44
| | | | | We need more callbacks for correct operation of multi-threaded rect decoding.
* Add abstraction classes for system thread primitivesPierre Ossman2015-11-275-0/+403
|
* Raise system requirement on Windows to Vista/2008Pierre Ossman2015-11-271-2/+2
| | | | | We need the newer versions of Windows to get access to better thread primitives.
* Fix copy-paste error for the secTypeX509Vnc security typePierre Ossman2015-11-271-1/+1
|
* Clear up ZlibInStream::reset() behaviourPierre Ossman2015-11-274-18/+46
| | | | | | | | | It previously only did a reset of the ZlibInStream object, not the underlying zlib stream. It also had the side effect of flushing the underlying stream and disassociating from it. Clear things up by changing the naming, and introducing a proper reset function (which is needed by the Tight decoder).
* Split decoders into a read and decode stepPierre Ossman2015-11-2717-364/+622
| | | | | | | | We need to split these steps up in preparation for multi-core support. Reading needs to be done in a serial manner, whilst decoding can be done in parallel. This also involved a rather large cleanup of the Tight decoder.
* Add efficient method to copy data between two streamsPierre Ossman2015-11-271-0/+12
|
* Remove unneeded virtual qualifiers on stream methodsPierre Ossman2015-11-272-2/+2
|
* Remove CMsgReader::getImageBuf() as nothing uses itPierre Ossman2015-11-272-26/+1
|
* Decouple decoders from CConnectionPierre Ossman2015-11-2716-83/+110
|
* Make ConnParams useful when constPierre Ossman2015-11-272-8/+8
|
* Delegate decoder object management to a separate classPierre Ossman2015-11-2713-148/+202
| | | | | | | | | Done in preparation for multi-core decoding. Keeps the complexity out of the other classes. This also moves ownership of the framebuffer in to CConnection. It's the CConnection object that is aware of the threads and how to synchronise with them. Therefore the ownership of the framebuffer must also be there to make sure it isn't deleted whilst threads are working.
* Clean out unused dependencies from CConnection.hPierre Ossman2015-11-095-4/+13
|
* Include kernel time in CPU usage measurementPierre Ossman2015-11-091-14/+29
| | | | | Time spent executing in the kernel is as much of a performance problem as time spent in userspace. Make sure both numbers are included.
* Remove old Windows CE codePierre Ossman2015-11-092-11/+0
|
* Use mingw's gettimeofday()Pierre Ossman2015-11-092-71/+3
| | | | | mingw has a perfectly functional gettimeofday() so use that instead of having multiple copies of our own version.
* Remove unused deleteReaderAndWriter() methodPierre Ossman2015-11-094-24/+0
|
* option -xstartup addedLlorenç Garcia Martinez2015-10-301-0/+7
|
* option -xstartup addedLlorenç Garcia Martinez2015-10-301-11/+16
|
* Merge branch 'patch-1' of https://github.com/Siot/tigervncPierre Ossman2015-10-302-13/+34
|\
| * Added -noxstartupLlorenç Garcia Martinez2015-10-231-0/+6
| |
| * new option -noxstartup to not load any xstartup script fileLlorenç Garcia Martinez2015-10-231-13/+28
| |
* | Xvnc.man: remove -i optionKirill Kolyshkin2015-10-281-1/+1
| | | | | | | | | | | | | | | | Xvnc does not understand -i as an alias to -interface anymore (since commit f8e3b34c69) but it is still listed in the man page. Fix man accordingly Signed-off-by: Kir Kolyshkin <kir@openvz.org>
* | Merge branch 'master' of https://github.com/graysky2/tigervncPierre Ossman2015-10-273-11/+97
|\ \
| * | provide a systemd user service unit for vncservergraysky2015-10-191-0/+26
| | |
| * | update manpage teaching about ~/.vnc/configgraysky2015-10-191-0/+8
| | |
| * | update vncserver to parse a config filegraysky2015-10-191-11/+63
| | |
* | | Allow BUILD_TIMESTAMP to be set staticallyDRC2015-10-271-4/+2
| | |
* | | Allow static linking against only the GCC libsDRC2015-10-271-1/+7
| | |
* | | Merge branch 'jpeg_includes' of https://github.com/dcommander/tigervncPierre Ossman2015-10-271-0/+2
|\ \ \ | |_|/ |/| |
| * | Ensure that libjpeg-turbo headers are includedDRC2015-10-161-0/+2
| | | | | | | | | | | | | | | | | | | | | On some systems, the build was picking up jpeglib.h from the system include directories, and if the system's version of libjpeg[-turbo] used a different API/ABI version than the one specified in JPEG_LIBRARY, this led to a "Wrong JPEG library version" error at run time.
* | | Flush entire JPEG buffer, ignoring statePierre Ossman2015-10-161-1/+1
|/ / | | | | | | | | | | libjpeg doesn't update the buffer state before calling the empty_output_buffer() callback so we need to flush everything, not just the apparent size.
* | Merge pull request #219 from astrand/masterastrand2015-10-141-1/+1
|\ \ | |/ |/| Meta no longer sends Super.
| * Meta no longer sends Super.Peter Åstrand (astrand)2015-10-141-1/+1
|/ | | | Since 83e019f599f409d60c12a3c0096f6b6d228d9fb1.
* Merge branch 'vncserverfix' of https://github.com/michalsrb/tigervncPierre Ossman2015-10-121-1/+7
|\
| * vncserver: Clean pid files of dead processes.Michal Srb2015-10-021-1/+7
| | | | | | | | | | When Xvnc fails to start, delete the pid file. Clean pid files of dead processes when listing them as well.