#๐Ÿ”’ Flickering entities in curses python

7 messages ยท Page 1 of 1 (latest)

harsh perchBOT
#

@mellow wave

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

mellow wave
#

Hey i got a lot of entities drawn with curses, they move dynamically and after i changed some code to async (for movement speed functionality) entities sometimes are flickering. What could be the potential issue? The code is so long, i cant post it in here, but you can take a look at the source code on github, or just point me what could be the issue, if you are in to curses and knows possible answer.
I was that refresh rate in tasks (system/system.py) is so small that unix terminal cant handle that, or maybe that i refresh stdscr too much/or too little

vid:
https://streamable.com/6xid97
entire code:
https://github.com/style77/EcoSphere

Watch "2024-02-26 01-38-43" on Streamable.

โ–ถ Play video
GitHub

Complete ecosystem simulation in unix terminal. Contribute to style77/EcoSphere development by creating an account on GitHub.

junior dome
#

hey i can try to help you out but i dont know enough about pygame

#

but this looks like a very interesting project!

#

it looks like they flicker when they move

#

where in your code is your movement

harsh perchBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.