27.1 Overview

Plugins that have the capability flag HWPLUG_CAPS_TIMERADAPTER set can replace Hollywood's inbuilt timer handler with their customized version. Timers are used to control Hollywood functions like SetInterval() or SetTimeout(), for instance. If you're writing a display adapter using an alternative toolkit, it might be good idea to also use the timer facilities of this toolkit to get a better performance.

Please note that timer adapters are not automatically initialized when Hollywood loads the plugin. Instead, you have to manually call hw_SetTimerAdapter() in your RequirePlugin() function to activate the timer adapter. The timer adapter will then only be activated if the user calls @REQUIRE on your plugin. Otherwise, Hollywood will use its default timer handler. See Auto and manual plugin initialization for details.

See hw_SetTimerAdapter for information on how to install your timer adapter.

This plugin type is supported since Hollywood 6.0.

Show TOC