Rudi De Vos wrote:Vnc send packets of 8192 byte
I found this on the net.
1.) The mtu for my network adapter is set to 9000.
2.) I can type "tracepath <ip>" and it returns a pmtu of 9000 to another computer.
3.) My buffer is 153600 bytes. So I need to send 18 (8192 byte) packets or 37 (4096 byte) packets.
4.) The rate at which data is being sent is 153600*60/second...so lots of data.
5.) Using the sendto command, I can send packets of size 576, 1400, 4088, and 4096, (and anything less than 1400) without many problems.
6.) I cannot use 4000, 8192, 9000,....and lots of others, except the above, when calling sendto or the program cannot keep up with sending and gathering data.
newtick = timeGetTime();
if (m_desktop->VideoBuffer() && m_desktop->m_hookdriver) waittime=20-(newtick-oldtick);
if (waittime<0) waittime=0;
if (waittime>100) waittime=100;
Rudi De Vos wrote:Thanks for the feedback...
I only don't understand that the SetDIBitsToDevice doesn't generate
an update when the mirror driver is used. When i'm correct this is done using a drvbitblt(). The mirror driver update the mirror surface and add the rectangle used in drvbitblt to a ringbuffer. Vnc read the ringbuffer and use the mirror surface to capture the screen data.
Rudi De Vos wrote:The hookdll only hook windows messages...and this doesn't capture function calls. Yep Detour is a nice lib, but virus checkers gonna freak on it and possible get broken with each MS update. To risky for non developer usage.
Rudi De Vos wrote:Using the mirror driver i can watch video 640x480, 10-15 fps.
At least when the cpu throttle is disabled to allow max cpu usage.
edit: i also did a code change 100ms was replaced by 25ms
( to make sure driver was polled every 25ms)
There were some reports in the past that the viewer was slow.
Nobody ever mentioned that it was on system running aero....
I final can repeat it.
viewer on vista without aero is a lot faster...
Users browsing this forum: No registered users and 1 guest