2012-04-06 3 views
5

Desidero testare il codice WebGL senza testa utilizzando Xvfb. Qualcuno sa come farlo?Render WebGL in Xfvb

Ho 2 macchine - entrambe con Ubuntu in esecuzione. Uno con scheda Nvidia e una con ATI:

La macchina NVidia:

ipmi:~ $>xvfb-run glxinfo 
name of display: :455 
display: :455 screen: 0 
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose) 
server glx vendor string: SGI 
server glx version string: 1.4 
server glx extensions: 
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method, 
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_MESA_copy_sub_buffer, GLX_INTEL_swap_event 
client glx vendor string: NVIDIA Corporation 
client glx version string: 1.4 
... 

ipmi:~ $>xvfb-run glxgears 
3725 frames in 5.0 seconds = 741.884 FPS 
3840 frames in 5.0 seconds = 767.310 FPS 
4080 frames in 5.0 seconds = 814.811 FPS 
4120 frames in 5.0 seconds = 821.859 FPS 

La macchina ATI:

shaka:~ $>xvfb-run glxinfo 
name of display: :99 
display: :99 screen: 0 
direct rendering: Yes 
server glx vendor string: SGI 
server glx version string: 1.4 
server glx extensions: 
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method, 
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_MESA_copy_sub_buffer, GLX_INTEL_swap_event 
client glx vendor string: Mesa Project and SGI 
client glx version string: 1.4 

shaka:~ $>xvfb-run glxgears 
4326 frames in 5.0 seconds = 865.095 FPS 
4343 frames in 5.0 seconds = 868.540 FPS 

Anche se Shaka supporta direct rendering utilizzando Mesa, non posso ottenere un Contesto WebGL.

Grazie!

risposta

0

Con il moderno X11, sarebbe meglio ignorare Xvfb e utilizzare il driver dello schermo dummy. Vedere le "Note aggiuntive" al numero http://www.x.org/wiki/XorgTesting per informazioni sull'utilizzo (si potrebbe presumibilmente specificare un numero personalizzato xorg.conf con la sezione Device necessaria). http://www.karlrunge.com/x11vnc/Xdummy è un altro modo di utilizzare il driver fittizio.

+0

Sembra buono ma purtroppo il driver dummy non supporta anche WebGL :( – haehn