Solene Rapenne writes:

> On amd64 -current (today snapshot)
> it seems games/opensonic runs slower than expected
>
> music is slow, game is slow. Here is a sample in video:
> https://perso.pw/sonic.flv
>
> in that state, the game is not playable.

I was able to reproduce this problem. I tried using using a 1000 tick
OpenBSD kernel, and the problem was resolved with the graphics and sound
running at full speed.

opensonic is currently at 0.1.2 and 0.1.4 is available. 0.1.4 requires
the new allegro 4. I have WIP updates of games/opensonic 0.1.4 and
games/allegro 4.4.3.1 where opensonic runs well at 100 fps. Sound is
still untested until I get allegro working with sndio.

My TODOs for allegro's update:
1. Add sndio support
2. Install docs
3. Break off allegro's addons into ports like graphics/allegropng

These updates are not ready for review yet. I will submit a ports@
update once I get sound working for allegro.

WIP updates here:
https://www.namtsui.com/cgi-bin/cvsweb/ports/games/allegro/
https://www.namtsui.com/cgi-bin/cvsweb/ports/games/opensonic/

Details:
Opensonic 0.1.2 uses allegro's timers, which resulted in poor
performance with OpenBSD's default 100 ticks. 0.1.4 uses gettimeofday()
instead of allegro's timers. The old implementation with allegro's
timers is now wrapped in #ifdef USE_ALLEGRO_TIMERS.

Allegro's timers:
https://www.allegro.cc/manual/4/api/timer-routines/install_int

Old threads noting opensonic's sound:
https://marc.info/?l=openbsd-ports&m=124429151131611&w=2
https://marc.info/?l=openbsd-ports&m=136665654931118&w=2

Reply via email to