Accelerate: wrapper around _accelerate module, written in cython.

Accelerate: wrapper around _accelerate module, written in cython.

This module increase internal performance of PyMT. User should not use directly this module. It’s designed to enhance performance of :

  • event dispatching (EventDispatcher class)
  • event traversal (Widget class, on_update and on_draw)
  • collide method (Widget class, collide_point)

Accelerate module use cython, and is activated by default, if cython is correctly installed. Please refer to http://www.cython.org/ about how to install cython on your environment.

You can control the usage of accelerate module with env variable

PYMT_USE_ACCELERATE

If the env is set to 0, the module will be deactivated.

pymt.accelerate.accelerate

Accelerate module (None mean that the module is not available)

Previous topic

PyMT: Python Multitouch Toolkit

Next topic

Base: Main event loop, provider creation, window management...

This Page