We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63ca78f commit 4b25876Copy full SHA for 4b25876
1 file changed
src/main.cpp
@@ -38,7 +38,12 @@ int main(int argc, char **argv) {
38
}
39
40
void mainLoop() {
41
+ int iters = 0;
42
while (!glfwWindowShouldClose(window)) {
43
+ iters++;
44
+ if (iters > 500) {
45
+ exit(1);
46
+ }
47
glfwPollEvents();
48
runCuda();
49
@@ -69,7 +74,6 @@ void mainLoop() {
69
74
//-------------------------------
70
75
//---------RUNTIME STUFF---------
71
76
72
-
73
77
void runCuda() {
78
// Map OpenGL buffer object for writing from CUDA on a single GPU
79
// No data is moved (Win & Linux). When mapped to CUDA, OpenGL should not use this buffer
0 commit comments