forum

Internal organs of Osu!

posted
Total Posts
3
Topic Starter
dr_Ed
Hey, lately I had a very hard time creating little pseudo rhythm game(after like 3 weeks I'm almost at starting point...) so I have some questions about the programming side of Osu!.
-How is Osu! so precise in calculations?
-Is logic completely isolated from graphic (like separate thread for checking input and performing actions OnHit, and separate for displaying circles)?
-On what frequency is that logic working (how many times a second is that loop called)?
-Is logic framerate independent?
-Are notes(circles) spawned on begining of the map or progressively during song?
-How does it keep track of current time of song?
-And how are those hit sounds played without any delay?

Huh, quite a few questions... I would be really greatfull for answer to any of these
Full Tablet
In the current stable build, the logic and input processing is not isolated from graphics, so they are dependent on the fps the game is running at. In osu!lazer, they are separate, with separate logic and input threads running at 1000 Hz while graphics run independently at other frequency.

You can check how osu!lazer is coded here https://github.com/ppy/osu-framework https://github.com/ppy/osu
abraker

dr_Ed wrote:

-How is Osu! so precise in calculations?
what do you mean by this?

dr_Ed wrote:

-Are notes(circles) spawned on begining of the map or progressively during song?
Progressively

dr_Ed wrote:

-How does it keep track of current time of song?
Clock

dr_Ed wrote:

-And how are those hit sounds played without any delay?
They do play with delay. Hardware and software latency all play into the factor. Best case is you get 1 ms delay, worst case is greater than 50 ms or so.
Please sign in to reply.

New reply