View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003566VTK(No Category)public2006-08-01 12:202011-01-13 17:00
ReporterSean McBride 
Assigned ToMathieu Malaterre 
PrioritylowSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003566: Performance improvement for vtk using Carbon
DescriptionThe docs for the aglSwapBuffers() function say:

<http://www.devworld.apple.com/documentation/GraphicsImaging/Reference/AGL_OpenGL/Reference/reference.html#//apple_ref/c/func/aglSwapBuffers> [^]
"The aglSwapBuffers function either swaps the buffers or copies the back buffer content to the front buffer. Before it returns, aglSwapBuffers invokes the OpenGL function glFlush"

Similiarly, this doc say:

<http://developer.apple.com/technotes/tn2004/tn2093.html> [^]
"For instance, you could use glFlush() to force drawing updates at the end of a draw loop, but you would not want to do this right before a call to a buffer swapping command (such as aglSwapBuffers(), which contains an implicit glFlush() itself)."

vtk is making this mistake.

I have attached a patch. I have tested that my dashboard succeeds, but have not done further testing. I believe the change is quite safe.
TagsNo tags attached.
Project
Type
Attached Filestxt file icon patch.txt [^] (741 bytes) 1969-12-31 19:00 [Show Content]
patch file icon glflush.patch [^] (1,810 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0004838)
Mathieu Malaterre (developer)
2006-09-04 10:21

$ cvs ci -m"BUG: Fix Bug 0003566 - Performance improvement for vtk using Carbon" Rendering/vtkCarbonRenderWindow.cxx
/cvsroot/VTK/VTK/Rendering/vtkCarbonRenderWindow.cxx,v <-- vtkCarbonRenderWindow.cxx
new revision: 1.45; previous revision: 1.44

 Issue History
Date Modified Username Field Change
2011-01-13 17:00 Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00 Source_changeset_attached => VTK master 020ef709
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team