Adaptive Refinement Promises Faster Rendering on Graphics Chips

October 4, 2004

Rendering realistic, computer-generated scenes can be a time-consuming exercise even on the most powerful computers. But computer scientists at the University of California, San Diego have developed a technique that accelerates certain graphics computations by two or three orders of magnitude, at very little cost. "It's really simple and requires only a few extra lines of code," says Craig Donner, a fourth-year computer science Ph.D. candidate in UCSD's Jacobs School of Engineering. "It was just an idea that nobody had thought of or implemented."

That idea applies adaptive refinement to graphics chips, and was presented in August at SIGGRAPH, the leading academic conference for computer graphics. In a technical sketch (pictured) and companion article, Donner and Computer Science and Engineering professor Henrik Wann Jensen detailed the technique for rendering a scene by tiling the screen and disregarding those tiles that are inactive. The result: significant speedups, depending on tile size and the algorithm used.

"It was three or four times faster as an overall speedup," explains Jensen, who is affiliated with the California Institute for Telecommunications and Information Technology [Cal-(IT)2]. "This technique provides significant speedups by exploiting computational similarity, coherence and locality."

Adaptive refinement is not new, but the UCSD team is the first to apply it to graphics processing units (GPUs), and specifically to the fragment processor, one of two programmable areas on a GPU. The project grew out of Jensen and Donner's work with colleagues from Stanford University on photon mapping with graphics processors.

Photon mapping simulates the indirect illumination of a scene fairly efficiently, and typically has been done on powerful workstations. But driven by the demands of gamers, chip designers have dramatically improved the power and speed of GPUs. "They've gone from barely being able to run the simple 2D graphics of your desktop graphical interface, to being able to run these really complicated games that you see coming out now at full frame rates, 60 frames per second," says Donner. "It's pretty amazing."

Rendering 1

Photon mapping uses multiple passes, and on later passes, the active areas become sparse, i.e., only part of the pixels on the screen are active, and over time some will no longer be active. "This large geometry that most people are using for their computations is fairly wasteful," explains Donner. He and Jensen concluded that it might not be necessary to do photon mapping on the entire image. "We had to perform this photon mapping computation only on specific parts of the image we were generating," recalls Jensen. "It dawned on us that you really only need to operate on part of the screen at a time."

Doing computation on a GPU typically involves rasterizing a piece of geometry on to the screen so it covers the entire screen, and then doing work on every single pixel in that image. "Yet not every pixel is doing useful work so you are wasting the resources of the hardware," claims Donner. "So what we settled on doing is actually tiling the screen and then culling away tiles that are no longer performing useful computations."

To figure out which tiles are inactive, the researchers took advantage of an existing feature of most recent graphics processors that permits 'occlusion queries'-asking for which tiles are active and have been drawn since the last query.

The researchers tested their technique on both photon mapping (which is very complicated, requiring hundreds of thousands of lines of code) as well as on a simple graphics algorithm known as a Mandelbrot Set (pictured). In both cases, adaptive refinement improved performance, especially in the later stages of each computation. For the easier computation, rendering was over three times faster. But with photon mapping, it was almost 300 times faster. "The more complex the computation, the more work you'e wasting on fragments that aren't doing anything useful," explains Donner. "So the more complex your calculation, the more you gain with this method."

Rendering 2

The optimal tile size in both scenarios was 16-by-16 pixels, but they say it depends on the algorithm itself. "Slightly larger tiles work better with smaller fragment programs that finish quickly," says Jensen, "while smaller tiles may be better suited to complex algorithms with long fragment programs." They also found that the best tile size is from 8 to 32 pixels wide on current hardware, and subdividing gives the best results when 40 to 60 percent of the fragments are active

According to the researchers, adaptive refinement should also be applicable to all sorts of other computations now done on graphics hardware.

In 2002, Craig Donner was the primary programmer on "Smoke and Mirrors," an interactive, multimedia installation funded in part by the institute and designed by UCSD visual arts professor Sheldon Brown, who is Cal-(IT)2's New Media Arts layer leader at the university, and director of the Center for Research in Computing and the Arts (CRCA). Donner also collaborated with Brown and others on the new visualizations of the Cal-(IT)2 building, now under contruction. The interactive 3-D model and multimedia visualizations were created by students Ben Maggos and Matt Hope, while the 3-D environment was controlled with a custom built 'scripter' developed by Donner.

Source: Jacobs School of Engineering


   
Rate this story - 5 /5 (2 votes)


October 4, 2004 all stories

Comments: 0

5 /5 (2 votes)

  • hide
  • Related Stories



Other News

Opera logo

Opera Software announces iPhone browser

Technology / Software

created 21 minutes ago | popularity not rated yet | comments 0

(AP) -- Opera Software ASA announced Wednesday that it will unveil an iPhone version of its Opera Mini mobile phone browser at an international tech conference next week despite not having approached iPhone ...


AT&T picks Alcatel-Lucent, Ericsson for network

Technology / Telecom

created 15 minutes ago | popularity not rated yet | comments 0

(AP) -- AT&T says it has picked Alcatel-Lucent and Ericsson to supply the equipment for its next wireless network, which will provide faster data speeds starting next year.


Students find ?lost? office gear with tiny sensors

Students find 'lost' office gear with tiny sensors

Technology / Engineering

created 2 hours ago | popularity 3 / 5 (1) | comments 1 | with audio podcast

(PhysOrg.com) -- Miniature sensors being developed by CSIRO promise to provide the answers to questions which seem to arise regularly in modern office workplaces like: "Where's my pen?" and; "Who nicked my ...


Sprint Nextel slows subscriber loss in 4th quarter

Technology / Telecom

created 2 hours ago | popularity not rated yet | comments 0

(AP) -- Sprint Nextel says its subscriber losses slowed in the fourth quarter, an encouraging sign for the wireless carrier that has lost millions of customers over the past few years.


Toshiba to spend billions on new chip factory: report

Technology / Semiconductors

created 4 hours ago | popularity not rated yet | comments 0

Japan's Toshiba plans to spend almost nine billion dollars to build a new factory producing memory chips for mobile telephones, cameras and other electronics, a report said Wednesday.