Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
c63fd348
Commit
c63fd348
authored
Jun 01, 2008
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11vnc: lower waitms and defer if framebuffer reads are fast (> 100MB/s)
parent
65b42bb8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1515 additions
and
1485 deletions
+1515
-1485
README
x11vnc/README
+1487
-1482
options.c
x11vnc/options.c
+1
-0
options.h
x11vnc/options.h
+1
-0
x11vnc.1
x11vnc/x11vnc.1
+2
-2
x11vnc.c
x11vnc/x11vnc.c
+23
-0
x11vnc_defs.c
x11vnc/x11vnc_defs.c
+1
-1
No files found.
x11vnc/README
View file @
c63fd348
This source diff could not be displayed because it is too large. You can
view the blob
instead.
x11vnc/options.c
View file @
c63fd348
...
...
@@ -353,6 +353,7 @@ int flip_byte_order = 0; /* sometimes needed when using_shm = 0 */
* poll times of 10-35ms, so maybe this value cuts the idle load by 2 or so.
*/
int
waitms
=
20
;
int
got_waitms
=
0
;
double
wait_ui
=
2
.
0
;
double
slow_fb
=
0
.
0
;
double
xrefresh
=
0
.
0
;
...
...
x11vnc/options.h
View file @
c63fd348
...
...
@@ -258,6 +258,7 @@ extern int tile_shm_count;
extern
int
using_shm
;
extern
int
flip_byte_order
;
extern
int
waitms
;
extern
int
got_waitms
;
extern
double
wait_ui
;
extern
double
slow_fb
;
extern
double
xrefresh
;
...
...
x11vnc/x11vnc.1
View file @
c63fd348
.\" This file was automatically generated from x11vnc -help output.
.TH X11VNC "1" "
May
2008" "x11vnc " "User Commands"
.TH X11VNC "1" "
June
2008" "x11vnc " "User Commands"
.SH NAME
x11vnc - allow VNC connections to real X11 displays
version: 0.9.4, lastmod: 2008-0
5-3
1
version: 0.9.4, lastmod: 2008-0
6-0
1
.SH SYNOPSIS
.B x11vnc
[OPTION]...
...
...
x11vnc/x11vnc.c
View file @
c63fd348
...
...
@@ -3222,6 +3222,7 @@ int main(int argc, char* argv[]) {
}
else
if
(
!
strcmp
(
arg
,
"-wait"
))
{
CHECK_ARGC
waitms
=
atoi
(
argv
[
++
i
]);
got_waitms
=
1
;
}
else
if
(
!
strcmp
(
arg
,
"-wait_ui"
))
{
CHECK_ARGC
wait_ui
=
atof
(
argv
[
++
i
]);
...
...
@@ -4782,6 +4783,28 @@ if (0) fprintf(stderr, "XA: %s\n", getenv("XAUTHORITY"));
initialize_speeds
();
if
(
speeds_read_rate_measured
>
100
)
{
/* framebuffer read is fast at > 100 MB/sec */
if
(
!
got_waitms
)
{
waitms
/=
2
;
if
(
waitms
<
10
)
{
waitms
=
10
;
}
if
(
!
quiet
)
{
rfbLog
(
"fast read: reset wait ms to: %d
\n
"
,
waitms
);
}
}
if
(
!
got_deferupdate
&&
!
got_defer
)
{
if
(
defer_update
>
15
)
{
defer_update
=
15
;
if
(
screen
)
{
screen
->
deferUpdateTime
=
defer_update
;
}
rfbLog
(
"fast read: reset defer ms to: %d
\n
"
,
defer_update
);
}
}
}
initialize_keyboard_and_pointer
();
if
(
inetd
&&
use_openssl
)
{
...
...
x11vnc/x11vnc_defs.c
View file @
c63fd348
...
...
@@ -15,7 +15,7 @@ int xtrap_base_event_type = 0;
int
xdamage_base_event_type
=
0
;
/* date +'lastmod: %Y-%m-%d' */
char
lastmod
[]
=
"0.9.4 lastmod: 2008-0
5-3
1"
;
char
lastmod
[]
=
"0.9.4 lastmod: 2008-0
6-0
1"
;
/* X display info */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment