Permalink
Browse files

Changed benchmark to fullscreen to reduce overhead

  • Loading branch information...
stegu committed Mar 25, 2011
1 parent 2acfd12 commit 46d926d90e619b527a2fc2b5b0bb8df4648e0116
Showing with 5 additions and 7 deletions.
  1. +1 −1 benchmark/common/noisebench.c
  2. +1 −1 src/noise2D.glsl
  3. +1 −1 src/noise3D.glsl
  4. +2 −4 src/noise4D.glsl
@@ -359,7 +359,7 @@ int main(int argc, char *argv[]) {
glfwInit();
// Open the OpenGL window
- if( !glfwOpenWindow(1024, 1024, 8,8,8,8, 32,0, GLFW_WINDOW) )
+ if( !glfwOpenWindow(4096, 4096, 8,8,8,8, 32,0, GLFW_FULLSCREEN) )
{
glfwTerminate(); // glfwOpenWindow failed, quit the program.
return 1;
View
@@ -3,7 +3,7 @@
// noise functions.
// Author : Ian McEwan, Ashima Arts.
// Maintainer : ijm
-// Lastmod : 20110223
+// Lastmod : 20110325
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
// Distributed under the Artistic License 2.0; See LICENCE file.
//
View
@@ -3,7 +3,7 @@
// noise functions.
// Author : Ian McEwan, Ashima Arts.
// Maintainer : ijm
-// Lastmod : 20110223
+// Lastmod : 20110325
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
// Distributed under the Artistic License 2.0; See LICENCE file.
//
View
@@ -3,7 +3,7 @@
// noise functions.
// Author : Ian McEwan, Ashima Arts.
// Maintainer : ijm
-// Lastmod : 20110223
+// Lastmod : 20110325
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
// Distributed under the Artistic License 2.0; See LICENCE file.
//
@@ -32,7 +32,7 @@ float simplexNoise(vec4 v)
// Other corners
#ifdef COLLAPSE_SORTNET
- // Rank sorting by Bill Licea-Kane, AMD (formerly ATI).
+ // Rank sorting contributed by Bill Licea-Kane, AMD (formerly ATI)
vec4 i0;
vec3 isX = step( x0.yzw, x0.xxx );
@@ -117,5 +117,3 @@ float simplexNoise(vec4 v)
+ dot(m1*m1, vec2( dot( p3, x3 ), dot( p4, x4 ) ) ) ) ;
}
-
-

0 comments on commit 46d926d

Please sign in to comment.