Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The game crashes after a few seconds #5

Closed
Nav33nn opened this issue Aug 14, 2019 · 2 comments
Closed

The game crashes after a few seconds #5

Nav33nn opened this issue Aug 14, 2019 · 2 comments

Comments

@Nav33nn
Copy link

Nav33nn commented Aug 14, 2019

Here is the stack trace

Traceback (most recent call last):
File "/home/naveen/anaconda3/bin/asciiracer", line 11, in
load_entry_point('asciiracer==0.1.1', 'console_scripts', 'asciiracer')()
File "/home/naveen/anaconda3/lib/python3.6/site-packages/pkg_resources/init.py", line 570, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/naveen/anaconda3/lib/python3.6/site-packages/pkg_resources/init.py", line 2751, in load_entry_point
return ep.load()
File "/home/naveen/anaconda3/lib/python3.6/site-packages/pkg_resources/init.py", line 2405, in load
return self.resolve()
File "/home/naveen/anaconda3/lib/python3.6/site-packages/pkg_resources/init.py", line 2411, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/home/naveen/anaconda3/lib/python3.6/site-packages/asciiracer/main.py", line 1, in
from . import game
File "/home/naveen/anaconda3/lib/python3.6/site-packages/asciiracer/game.py", line 54, in
curses.wrapper(main)
File "/home/naveen/anaconda3/lib/python3.6/curses/init.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/home/naveen/anaconda3/lib/python3.6/site-packages/asciiracer/game.py", line 40, in main
draw_scene(screen)
File "/home/naveen/anaconda3/lib/python3.6/site-packages/asciiracer/misc.py", line 17, in run
raise RuntimeError('cannot keep up with target FPS')
RuntimeError: cannot keep up with target FPS

@UpGado
Copy link
Owner

UpGado commented Aug 14, 2019

I suspect that your computer can't handle the game at the target FPS, which defaults to 60. Currently, there is no way to change the FPS unless you change the source code. Try and edit the config.py file, which would reside on your system at /home/naveen/anaconda3/lib/python3.6/site-packages/asciiracer/config.py and lower the FPS to something like 30. Let me know if that works.

@Nav33nn
Copy link
Author

Nav33nn commented Aug 14, 2019

Works perfectly fine! Thanks!

@Nav33nn Nav33nn closed this as completed Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants