Mayavi:Linux下的渲染(别名)很差

时间:2014-06-29 22:52:34

标签: python linux mayavi

我写了一些mayavi代码,用于在周末可视化Windows上的线条和图像。当我回到我的linux工作台时,我对运行相同的脚本感到非常失望。执行时间要慢很多(通​​过暂时禁用mayavi中的渲染来部分修复)并且输出是别名的。我跑了glmark2测试我的显卡没有问题。

我可以做些什么来在mayavi中获得更好的渲染效果?

Mayavi输出

Linux - 别名行:

Low quality output from Mayavi under Linux

Windows - 线条更平滑:

Medium quality output from Mayavi under Windows

Glmark2结果

=======================================================
    glmark2 2012.08
=======================================================
    OpenGL Information
    GL_VENDOR:     Intel Open Source Technology Center
    GL_RENDERER:   Mesa DRI Intel(R) Ivybridge Desktop 
    GL_VERSION:    3.0 Mesa 10.0.0
=======================================================
[build] use-vbo=false: FPS: 2544 FrameTime: 0.393 ms
[build] use-vbo=true: FPS: 2463 FrameTime: 0.406 ms
[texture] texture-filter=nearest: FPS: 2775 FrameTime: 0.360 ms
[texture] texture-filter=linear: FPS: 2267 FrameTime: 0.441 ms
[texture] texture-filter=mipmap: FPS: 2179 FrameTime: 0.459 ms
[shading] shading=gouraud: FPS: 1152 FrameTime: 0.868 ms
[shading] shading=blinn-phong-inf: FPS: 1051 FrameTime: 0.951 ms
[shading] shading=phong: FPS: 1068 FrameTime: 0.936 ms
[bump] bump-render=high-poly: FPS: 520 FrameTime: 1.923 ms
[bump] bump-render=normals: FPS: 2249 FrameTime: 0.445 ms
[bump] bump-render=height: FPS: 1900 FrameTime: 0.526 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 1112 FrameTime: 0.899 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 466 FrameTime: 2.146 ms
[pulsar] light=false:quads=5:texture=false: FPS: 1550 FrameTime: 0.645 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 394 FrameTime: 2.538 ms
[desktop] effect=shadow:windows=4: FPS: 691 FrameTime: 1.447 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 530 FrameTime: 1.887 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 559 FrameTime: 1.789 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 558 FrameTime: 1.792 ms
[ideas] speed=duration: FPS: 1108 FrameTime: 0.903 ms
[jellyfish] <default>: FPS: 797 FrameTime: 1.255 ms
[terrain] <default>: FPS: 101 FrameTime: 9.901 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 1646 FrameTime: 0.608 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 1796 FrameTime: 0.557 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 1617 FrameTime: 0.618 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 1644 FrameTime: 0.608 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 1796 FrameTime: 0.557 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 1695 FrameTime: 0.590 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 1709 FrameTime: 0.585 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 1697 FrameTime: 0.589 ms
=======================================================
                                  glmark2 Score: 1387 
=======================================================

更新

我用Nvidia N450GTS显卡更新了我的系统,目前我正在使用专有的NVIDIA驱动程序(NVIDIA-Linux-x86_64-337.19.run)。输出仍然是严重别名,正如我后来发现的那样,包含不正确的z顺序元素,如下图所示:

angle without z-order problems z-order problems

0 个答案:

没有答案