Majorly improved the speed of rectangle shading in Rapicorn, here’s a quick-and-dirty random number generator which is still good enough for dithering:
This has been the major speed-up-knob, other aspects were as confusing as profiling often gets, e.g. -ffast-math actually slowed down the rectangle shader by 13%. inline uint32 quick_rand32 (void)
{
static uint32 accu = 2147483563;
accu = 1664525 * accu + 1013904223;
return accu;
}
- This blog is mostly about technical stuff related to my projects.My homepage has contacts and a project list.
-
Blogroll
-
Categories
-
Recent Posts
-
Recent Comments
-
Archives
- September 2009 (1)
- April 2009 (1)
- October 2008 (2)
- September 2008 (1)
- July 2008 (1)
- June 2008 (3)
- May 2008 (1)
- April 2008 (2)
- February 2008 (1)
- October 2007 (2)
- September 2007 (3)
- August 2007 (2)
- July 2007 (2)
- June 2007 (4)
- April 2007 (3)
- March 2007 (1)
- January 2007 (2)
- December 2006 (2)
- November 2006 (2)
- October 2006 (1)
- September 2006 (2)
- August 2006 (1)
- July 2006 (1)
- June 2006 (1)
- May 2006 (2)
- April 2006 (3)
- February 2006 (2)
- January 2006 (1)
- December 2005 (3)
- November 2005 (2)
- September 2005 (1)
- August 2005 (3)
- July 2005 (6)
- June 2005 (12)