sisl / PyroRL

An RL environment made for wildfire evacuation.
https://sisl.github.io/PyroRL/
MIT License
12 stars 0 forks source link

Buggy pygame window on Mac Intel #12

Open SamTov opened 1 month ago

SamTov commented 1 month ago

I ran the map_gen.py example on an intel Mac with Python 3.10. The Pygame window is very glitchy, it seems to be reloading the entire window at every update.

cpondoc commented 1 month ago

Hey @SamTov -- thanks for bringing this up! We'll investigate this on our end, but I will say that in terms of reloading the entire window at every update, that should be expected behavior. Specifically: calling render on our environment should save a snapshot at a singular point in time, so it would make sense that it reloads with each timestamp. Nonetheless, we'll report back!

mikemahoney218 commented 1 month ago

https://github.com/openjournals/joss-reviews/issues/6739 (just commenting so these get linked :smile: )

SamTov commented 1 month ago

@cpondoc I should maybe be a little more specific as I am not sure if we are on the same page. When I say window, I mean the full GUI window, but just the frame of the simulation. From the examples I saw, this is not expected from your code. It looks like the gui is being shut down and re-loaded at each update, not just the frame.