b*********8 发帖数: 288 | 1 版上各位达人,以前问过很多人都没有解决。我用C++,然后用timer控制刷新速度,同
时开多个(比如说四个)窗口,同时独立显示,图案非常简单。结果发现速度随窗口的
数目增加而减慢,不知道是什么原因? |
O*******d 发帖数: 20343 | 2 You may have to manually control clipping. Do not let OpenGL render scene
that is going to be clipped anyway. One method is to use gluProject
function to get screen coordinates of the object and skip the object
rendering if outside the clipping window.
The clipping happens at the late stage of OpenGL pipeline. You may save a
lot of time by skipping clipped objects at the beginning.
【在 b*********8 的大作中提到】 : 版上各位达人,以前问过很多人都没有解决。我用C++,然后用timer控制刷新速度,同 : 时开多个(比如说四个)窗口,同时独立显示,图案非常简单。结果发现速度随窗口的 : 数目增加而减慢,不知道是什么原因?
|
b*********8 发帖数: 288 | 3 I only had a cub displayed. Clipping should not be a problem. I suspect
the video memory is refreshed individually by each windows, thus for each
frame, there will be four refresh commands which may require more time that
a it was allocated for each frame. Not soure how windows implemented OpenGL.
Happy New Year!
【在 O*******d 的大作中提到】 : You may have to manually control clipping. Do not let OpenGL render scene : that is going to be clipped anyway. One method is to use gluProject : function to get screen coordinates of the object and skip the object : rendering if outside the clipping window. : The clipping happens at the late stage of OpenGL pipeline. You may save a : lot of time by skipping clipped objects at the beginning.
|