From df4b16c228abcfb47464ae51b2fe5be818d5f0c6 Mon Sep 17 00:00:00 2001 From: Abraxa Date: Fri, 5 Sep 2008 22:35:35 +0000 Subject: [PATCH] Add evas image and font caching git-svn-id: http://www.neo1973-germany.de/svn@126 46df4e5c-bc4e-4628-a0fc-830ba316316d --- epydial/epydial.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/epydial/epydial.py b/epydial/epydial.py index 4436818..2395fb5 100755 --- a/epydial/epydial.py +++ b/epydial/epydial.py @@ -7,7 +7,11 @@ __license__ = "GPL3" WIDTH = 480 HEIGHT = 640 + FRAMETIME = 1.0 / 20 +IMAGE_CACHE_SIZE = 6 +FONT_CACHE_SIZE = 2 + FULLSCREEN = True APP_TITLE = "epydial" WM_INFO = ("epydial", "epydial") @@ -390,6 +394,8 @@ class EvasCanvas(object): self.evas_obj.name_class = WM_INFO self.evas_obj.fullscreen = fullscreen # self.evas_obj.size = str(WIDTH) + 'x' + str(HEIGHT) + self.evas_obj.evas.image_cache_set(IMAGE_CACHE_SIZE*1024*1024) + self.evas_obj.evas.font_cache_set(FONT_CACHE_SIZE*1024*1024) self.evas_obj.show() def on_resize(self, evas_obj):