Mercurial > touhou
diff eclviewer.py @ 131:fab7ad2f0d8b
Use Cython, improve performances!
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 11 Sep 2011 02:02:59 +0200 |
parents | 11ab06f4c4c6 |
children | 2547df120ece |
line wrap: on
line diff
--- a/eclviewer.py +++ b/eclviewer.py @@ -16,9 +16,12 @@ import sys import os +import pyximport +pyximport.install() + from pytouhou.resource.loader import Loader from pytouhou.game.background import Background -from pytouhou.opengl.gamerenderer import GameRenderer +from pytouhou.opengl.gamerunner import GameRunner from pytouhou.game.games import EoSDGame from pytouhou.game.player import PlayerState @@ -39,8 +42,8 @@ def main(path, stage_num): print(stage.name) # Main loop - renderer = GameRenderer(resource_loader, game, background) - renderer.start() + runner = GameRunner(resource_loader, game, background) + runner.start() try: