ivanperez-keera / SpaceInvaders

A Haskell game written in Yampa
BSD 3-Clause "New" or "Revised" License
26 stars 16 forks source link

Execution is very slow. #44

Closed chansey97 closed 9 months ago

chansey97 commented 9 months ago

After about 10 seconds of normal playing, the execution become very slow.

Environment: Ubuntu 22.04.3 LTS, GHC 9.4.8.

At the moment, SpaceInvaders is unable to run on Windows (I encountered the same problem with https://github.com/ivanperez-keera/SpaceInvaders/issues/31), Therefore, the above test was in VMWare.

While the problem might be related to the virtual machine (I don't think so though since it's a so small app and I could play other games and apps normally), I would like to confirm whether you was experiencing the same performance issues on your system?

Thanks.

Some related issues https://github.com/ivanperez-keera/SpaceInvaders/issues/33

chansey97 commented 9 months ago

At the moment, SpaceInvaders is unable to run on Windows (I encountered the same problem with https://github.com/ivanperez-keera/SpaceInvaders/issues/31)

This is HGL's issue. I have created a repository https://github.com/chansey97/HGL to fix the problem.

Since I haven't found a public repository (e.g. Github) for HGL to create pull requests, I just established this repository to fix these compilation and runtime issues (Perhaps I would contact them via email).

After about 10 seconds of normal playing, the execution become very slow.

This is SpaceInvaders' issue. I have created a pull request included a detailed explanation https://github.com/ivanperez-keera/SpaceInvaders/pull/46.