Giter VIP home page Giter VIP logo

Comments (6)

dcommander avatar dcommander commented on July 20, 2024

Which version of the viewer?

from turbovnc.

loganmc10 avatar loganmc10 commented on July 20, 2024

2.0.80 (20151217), using Java 8u72 on Windows 7.

from turbovnc.

dcommander avatar dcommander commented on July 20, 2024

OK, I'll investigate further. I see a delay on Windows using Java as well, but not nearly as long a delay as what you're seeing.

from turbovnc.

loganmc10 avatar loganmc10 commented on July 20, 2024

So with the Java Viewer debugging turned on I see this:

DesktopWindow: GraphicsDevice does not support HW acceleration.
PlatformPixelBuffer: Native pixel format is depth 24 (32bpp) little-endian rgb888
PlatformPixelBuffer: Native pixel format is depth 24 (32bpp) little-endian rgb888
CConn: Using pixel format depth 24 (32bpp) little-endian rgb888
CConn: Requesting Tight encoding
CConn: Screen 0 work area: 0, 0 1920 x 1152
CConn: Screen 1 work area: 1920, 0 1920 x 1200
CConn: Spanned work area: 0, 0 1920 x 1152
Viewport: Set geometry to 331, 92 1258 x 967
CMsgReaderV3: Server supports GII version 1
CConn: Enabling GII
CConn: Enabling continuous updates

It takes 7 seconds until "CConn: Screen 0 work area: 0, 0 1920 x 1152" and then another 7 seconds until "CConn: Screen 1 work area: 1920, 0 1920 x 1200" shows up. I have 2 monitors, perhaps that's why my delay is longer?

from turbovnc.

loganmc10 avatar loganmc10 commented on July 20, 2024

I unplugged my 2nd monitor and it did indeed cut the delay from 14 to 7 seconds.

from turbovnc.

dcommander avatar dcommander commented on July 20, 2024

You're running into this issue:

https://bugs.openjdk.java.net/browse/JDK-6477756

Workaround is to set the Java system property sun.awt.nopixfmt to true. I just checked in a commit to master and 2.0.x that should make this happen automatically. As far as I can tell, there are no ill effects from doing this. Basically, setting sun.awt.nopixfmt=true tells Java 2D to use the default pixel format instead of probing for all available pixel formats, but I think that's probably fine, because the Java TurboVNC Viewer always tries to use the Windows GDI Java 2D blitter. As far as I understand, probing for pixel formats is only necessary when using the OpenGL or DDraw Java 2D blitters, but I included a safety net in case something goes wrong (the old behavior can be reverted by explicitly setting sun.awt.nopixfmt to 0 or false.)

from turbovnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.