Mercurial > touhou
comparison pytouhou/ui/window.pxd @ 533:de778a80820a
Optimise Clock a bit more.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 10 Feb 2014 18:03:50 +0100 |
parents | b39ad30c6620 |
children | aad758aef26d |
comparison
equal
deleted
inserted
replaced
532:dacdcca59b66 | 533:de778a80820a |
---|---|
2 | 2 |
3 | 3 |
4 cdef class Clock: | 4 cdef class Clock: |
5 cdef unsigned long _ref_tick | 5 cdef unsigned long _ref_tick |
6 cdef long _target_fps, _ref_frame, _fps_tick, _fps_frame | 6 cdef long _target_fps, _ref_frame, _fps_tick, _fps_frame |
7 cdef double _rate | 7 cdef double fps |
8 | 8 |
9 cdef void set_target_fps(self, long fps) nogil | 9 cdef void set_target_fps(self, long fps) nogil |
10 cdef double get_fps(self) nogil | |
11 cdef void tick(self) nogil except * | 10 cdef void tick(self) nogil except * |
12 | 11 |
13 | 12 |
14 cdef class Runner: | 13 cdef class Runner: |
15 cdef long width, height | 14 cdef long width, height |