如果程序退出时无法删除顶点缓冲区对象,会发生什么情况?
在我读过的有关顶点缓冲区对象的所有文档和教程中,作者都特别提到您必须在应用程序退出之前删除 VBO。
如果程序崩溃或被终止而无法删除 VBO,VBO 会发生什么情况?它是否会一直保留在 GPU RAM 中直到计算机重新启动,或者 GPU 最终会恢复 VBO 占用的内存吗?
In all the documents and tutorials I've read about Vertex Buffer Objects the authors all make a point of mentioning that you must delete you VBO before an application quits.
In the case that a program crashes or is killed in a way that the program can't delete the VBO what happens to the VBO? Does it persist in the GPU RAM until the computer is rebooted or does the GPU eventually recover the memory occupied by the VBO?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
OpenGL 实现将清理所有未分配的对象。这并不意味着您应该将它们随意放置,但是您不需要采取措施来确保对象在特殊情况(即崩溃)时被销毁。
The OpenGL implementation will clean up any objects left unallocated. That doesn't mean that you should just leave them lying around, but you don't need to take measures to ensure that objects are destroyed in the event of exceptional circumstances (ie: crashing).