A Compact Method for Backface Culling

December 24th, 2008

Another Gamasutra article (this time by Osnat Levi who was part of the Media Team way back when…) – this article pulls in the backface culling checks ahead of the transformation stage and does it quickly using facet normals that are precomputed and stored in a compact form.

3D Graphics

Real-Time Procedural Texturing

December 15th, 2008

Here’s something from the past – I dusted the cobwebs off of this one, but it’s still relevant.

Real-Time Procedural Texturing Techniques Using MMX is equally applicable to WMMX and XScale processors (or perhaps with Neon instructions and a bit of modifications).  Definitely worth a view on a bandwidth saving technique.

Uncategorized

Profiling, Data Analysis, Scalability, and Magic Numbers

December 4th, 2008

Herb Marsalas now chimes in with the first of a two-part article that describes the tips, tricks, tools, and pitfalls that went into raising the performance profile of Age of Empires II: The Age of Kings. All of the techniques and tools used to measure and improve AoK are fully capable of improving the performance of other games.

3D Graphics ,

Tessellation of 4×4 Bezier Patches for the Intel Pentium III Processor

December 1st, 2008

In this article, Ronen Zohar contributes his technique for Tessellation of 4×4 Bezier Patches. This technique allows us to leverage higher order surface models (keeping data sets small). Since most hardware is triangle (or even quad) based, the tessellation is a required preprocessing step to feeding the pipeline.

3D Graphics , , ,

Optimizations Conrner: An optimized matrix library in C++

November 30th, 2008

The last article was very low level as it took even microarchitectural features into consideration. This article, we go right back up to a higher level to look at using SSE for matrix operations. The earliest definition of SSE was four-wide SIMD floating point (single precision) and is well suited for many 3D rendering operations (especially geometry).

The Optimized Matrix Library in C++ was contributed by Zvi Devir and was able to fully leverage the SIMD extensions on the Pentium III (and beyond) processor using C++.

3D Graphics, Multimedia , , ,

Optimizations Corner: Cleaning up

November 30th, 2008

Koby Gottlieb was instrumental in explaining some important code optimizations in the installment entitled Cleaning Memory and Partial Register Stalls in Your Code. The idea here was to follow up the first installment (where we purposely concentrated on higher level effects on performance with some nitty-gritty code optimizations that reflected specific microarchitectural characteristics of the target platform.

general , ,

Optimizations Corner Revisited

November 30th, 2008

Looking way back (1999-2000), I helped edit a brief Optimization’s Corner as part of Gamasutra magazine. I will review a few of the ideas and summarize what they are about. This is not a reposting of the articles – you can find them already published in Gamasutra – rather it’s just a review of what was going on at the time.

The first article in the series was a short article I wrote regarding how size of primitives affect 3D graphics performance. I thought I was really clever by giving the article such a provacative title:

Optimizations Corner: Sorry, But Size Does Count! (gee, isn’t that clever?) Well, one of the main points of this article was the fact that data optimization is often more important than code optimization. Too often programmers spend a lot of time optimizing their code. They are starting already in the final stages of optimization (i.e. code) and have skipped algorithmic and data optimizations stages. Why optimize code that might not be used? While the performance data presented in the article is for software rendering (and on a bit of an older Pentium III archtecture), it is still true today that optimizations must start at a higher level. In this case, insuring that the data modeling was preprocessed correctly had a huge impact on performance.

More reviews are on the way – stay tuned…

3D Graphics , ,

We’re back…

November 26th, 2008

Optimizations.org is back online after a long hiatus.

This blog is meant to serve as a place not only for my rantings and ravings about optimizations (or optimisations for all you Brits out there), but for all thoughts even tangentially related to the subject. While some of the legacy articles concentrated on optimizations for PC code (multimedia and 3D games), we’ll include thoughts on algorithmic optimizations, low-level code optimizations and even search engine optimizations for websites.

Haim

general , , , ,