From b26209f4ee7a1cb6d69a232848a48276adbc7605 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 18 Mar 2015 21:32:47 +0100 Subject: no grid, proper video speed --- client2.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client2.cpp b/client2.cpp index 9411b72..3e76f5a 100644 --- a/client2.cpp +++ b/client2.cpp @@ -92,9 +92,9 @@ const char* drawOnCanvasFragmentSource = " }\n" " else\n" " outColor = vec4(0.0,0.0,0.0,0.00);" - " float xxx = Texcoord.x/3.141592654*180/10+100;" - " float yyy = Texcoord.y/3.141592654*180/10+100;" - " if ( (abs(xxx- int(xxx)) < 0.01) || (abs(yyy- int(yyy)) <.01)) outColor = vec4(1,1,1,1);" + //" float xxx = Texcoord.x/3.141592654*180/10+100;" + //" float yyy = Texcoord.y/3.141592654*180/10+100;" + //" if ( (abs(xxx- int(xxx)) < 0.01) || (abs(yyy- int(yyy)) <.01)) outColor = vec4(1,1,1,1);" //" else outColor = vec4(0,0,0,1);" "}\n"; @@ -621,6 +621,8 @@ void* video_fetcher_thread(void* ptr) } oldgray = gray.clone(); + + usleep(40000); } return NULL; } -- cgit v1.2.3