X
Business

Wahoo! hardware acceleration arrives in Opera 12

Opera 12 uses hardware for everything its Vega display engine handles--font display, CSS (Cascading Style Sheets) effects, Canvas 2D graphics, and WebGL 3D graphics.
Written by Stephen Shankland, Contributor

OSLO, Norway--Opera Software took the hardware acceleration plunge today with the release of its first alpha version of Opera 12, code-named Wahoo.

Hardware acceleration offers a range of benefits to Web browsers--faster performance, lower battery consumption, and new features that would be otherwise impractical. So it's no surprise that browser makers--catalyzed in part by Microsoft's Internet Explorer 9--have been rebuilding their engines to support the idea.

But Opera, while not the first with hardware acceleration, thinks it's got a competitive approach. It uses hardware for everything its Vega display engine handles--font display, CSS (Cascading Style Sheets) effects, Canvas 2D graphics, and WebGL 3D graphics.

The Norwegian browser maker had two priorities with acceleration, which is named after a fast-swimming fish, said Jan Standal, vice president of desktop products, in an interview at the company's Up North Web event here.

"One, it was more important to get it right than get it fast," Standal said. "Two, we wanted to reach as many users as possible."

Reaching Windows XP
"Reach" means offering the feature to as many people as possible--those using Windows, Mac OS, and Linux, and those using older versions of Windows such as XP that IE9 doesn't support. But reaching XP isn't always possible, so, like other browsers, Opera uses a blacklist to disable hardware acceleration on some machines.

"The issue with XP is that many drivers are not supported anymore, and they will have bugs that will not get fixed," said Karl Anders, who manages the desktop version of Opera (and the company's seventh employee, by the way, starting the day the browser project became independent from Norway's Telenor phone service company).

Opera 12 should ship in final form later this year, said Christen Krogh, chief development officer, in an earlier interview.

Opera hopes Wahoo's alpha release will help the company pin down what hardware and drivers works and what doesn't. "If you see a bug, try to turn off hardware acceleration by setting opera:config#UserPrefs|EnableHardwareAcceleration to 0, restart Opera, and see if the bug is still there," advised Opera's Tommy Olsen in a blog post yesterday. He also requested that people report any problems in the post's comments.

For its "reach" priority, Opera 12 uses a display engine called Vega that tap into the graphics processing unit (GPU) hardware power but that also fall back to the regular central processing unit (CPU) for what the company calls "software acceleration." "Vega has software back end and hardware back end," Standal said. "You can get decent performance with the CPU back end and even better performance with the GPU back end."

For hardware acceleration, Opera taps into graphics cards' direct interfaces. Initially Opera 12 only uses the OpenGL interface that's standard on Mac OS and Linux but second fiddle to Microsoft's DirectX on Windows.

WebGL for 3D Web games
WebGL, though, won't work unless hardware acceleration is enabled, though Opera is looking at some options to improve its availability, Standal said.

WebGL is essentially a JavaScript-based interface to OpenGL ES, a stripped-down version of full OpenGL that's designed for mobile phones and other devices less powerful than personal computers. Opera and allies including Mozilla and Google hope it will usher in a new era of Web games in particular.

Web developers aren't leading the WebGL charge, though, Standal said. "We see game developers moving into the WebGL world. It's not Web developers taking the lead," he said. "WebGL gives them a fairly familiar environment to operate in."

Anders agreed. "OpenGL is generally quite well understood," he said, and some game developers are eager for a real 3D interface for Web games. "We've seen people implement 3D engines just with [2D] Canvas because WebGL is not out there."

Internet Explorer doesn't support WebGL, though, undermining some advocates hope that WebGL can be considered a standard feature among modern browsers. Opera Chief Technology Officer Haakon Wium Lie believes Microsoft will change its mind, though.

"I don't think they have an interest in not doing WebGL," Lie said. "I think they will come on board."

WebGL also figures into Opera's push to get its browsers on to TVs and TV set-top boxes. At its Up North Web event, the company demonstrated WebGL running on a Broadcom set-top box reference design with dual 1.2GHz processors, a relatively high-end model.

About Stephen Shankland
Stephen Shankland writes about a wide range of technology and products for CNET News, but has a particular focus on browsers and digital photography. He joined CNET News in 1998 and since then also has covered Google, Yahoo, servers, supercomputing, Linux and open-source software and science.

Editorial standards