2017 05 01

published 01 May 2017

I guess may is already upon us. How time flies!

Transform sequences

I didn’t get to mention this last week, but I spent some time thinking about how to tidy up places where we use many transforms in a row. Until recently, it was very easily to add delays when making things move and not cleaning up after yourself, creating unintended side-effects somewhere further down the draw tree. Take this example:

We now use the using() pattern to automatically roll back any applied delays, avoiding potential user errors. Some of our contributors have already replaced most existing instances of Delay and DelayReset with this new pattern; once everything is switched over we can remove these two methods completely.

In addition to the delay sequence, there is also the concept of an absolute sequence. This can be used to start transforms from a known time value, which is useful for things like hit objects where you know exactly when you want things to happen, as opposed to applying transforms relative to the current time.

Playlist controller

DrabWeb made some good headway on the playlist implementation, but it was still some way from being in a usable state. I spent some time today refactoring and extending the implementation so his effort in implementing the UI would not be wasted. Getting search hooked up is just one step away (dependent on another few pull requests which need further review)!

Paragraph (and word wrap) support

Again building on DrabWeb’s initiative, I polished the Paragraph logic so we can finally wrap words correctly. While this isn’t used anywhere in-game yet, here’s a quick look at where things stand.

Other things

  • The localisation system continues to get more implementation details thanks to huoyaoyuan #678.
  • A potential regression was fixed post song select performance improvements #693.
  • Quite a sizeable refactor of osu! autoplay code by gracefu was merged #665. No visible changes, but the code is much more elegant.

New release available

2017.501.0 is now available from github releases (or via auto-update if you already have lazer installed)! Contains everything above.

comments

2017 04 28

published 28 Apr 2017

Song select performance

I spent some time today addressing the stuttering performance at song select. Being the centre of osu!, song select is important to get right. There are a lot of piece working together, so it’s essential to get the threading and debouncing logic correct from the get-go.

The changes I worked on today improve performance when quickly selecting multiple beatmaps (especially when using the arrow keys), as well as begin cleaning up the event flow of panel selection which was quite convoluted until now.

Improved lead-in time support

There were still a few remaining issues with lead-in time which have now been resolved. As of the next release all maps with any amount of lead-in should be playable, finally!

Other things

No release today!

Waiting to get a few more pull requests merged before pushing out the next build.

Oh and you may have noticed I skipped a day’s blog yesterday. While I will try and keep up daily blogs, I am not holding myself to it. I regularly need to take breaks from coding to catch up on email, accounting, support, etc. so keep that in mind if you don’t hear from me for a period of time :).

comments

2017 04 26

published 26 Apr 2017

Continued work on clocks and seeking support

Here’s a very raw preview of seeking support utilising speed changes. Rewind support isn’t completely implemented, but can be generally fixed with a few lines of change (though the correct solution will take a bit more thinking, as this was achieved by disabling some game-wide optimisations).

The end goal is to allow seeking in both directions with completely accurate scoring and playback. I actually already achieved this on lazer-transitional in a distant past and am using similar techniques to reimplement this on lazer, so it’s quite familiar (yet still daunting) territory!

Added support for lead-in time

Makes a lot of maps playable that previously weren’t. Haven’t extensively tested this yet, and it will likely receive further revisions over the next few days.

Other things

  • Fix disabling mouse buttons causing auto to stop working #677.
  • osu!taiko difficulty calculations are in! Note that this will only apply to newly imported beatmaps #675.
  • osu!taiko drumroll conversion has received some minor fixes #663.
  • ..as have swells (spinner converts) #676.
  • My changes from yesterday have been merged (improving replay playback accuracy) #672 & #667.

New release available

2017.426.0 is now available from github releases (or via auto-update if you already have lazer installed)! Contains everything above.

comments

2017 04 25

published 25 Apr 2017

Frame-accurate replay playback

I realised while reviewing code today that we were not playing back replays in a frame-accurate manner. I spent most of today fixing that. Frame accurate playback means that the playback will result in the same score no matter how slow/fast it is played back. It means that if there is lag recorded in the replay, it will be reproduced in the replay. Likewise, if there is lag in the client during playback, the replay will be unaffected by this.

Getting this right is a prerequisite to being able to have free reign over replay playback, including adjusting speed and seeking (something I plan on working on over the next couple of days), so it is imperative that we get this right.

Unfortunately I don’t have much to show from this work. I have managed to speed up replay playback to up to 50x with no errors, but as the audio track is not synced, it would not make for a good video. Hopefully things will be ready to share tomorrow!

Other things

  • Menu music and welcome/goodbye voices can now be toggled as expected #634.
  • Configuration settings which were (in osu-stable) 0..100 or -100..100 ranges have been switched to float 0..1 or -1..1 ranges #658.
  • Project READMEs received some minor updates #671

New release available

2017.425.0 is now available from github releases (or via auto-update if you already have lazer installed)! Contains everything from previous days, but not the stuff mentioned above; isn’t reviewed yet.

comments

2017 04 24

published 24 Apr 2017

Beatmap info wedge design update

Some minor (but long overdue) changes to the beatmap info wedge

Before

After

What changed?

  • Coloured bar on the left represents the difficulty level at a quick glance.
  • The source and artist are in the correct place now.
  • The weird double-dash is replaced with an em-dash as expected.

Note that this isn’t the final design still (there’s a lot more refinements that are waiting in the todo list!), so keep an open mind for the time being!

Online metrics are now loaded

You will now be able to see beatmap fail/retry times and online ratings if you are logged in. They are cached only until you exit song select once, but will definitely be cached for longer in the future. You’ll notice the display dim while it’s fetching new values from the intertubes.

The last tab you were viewing at song select is now also remembered between startups.

Rigid body physics

Tom94 seems to have gotten a bit restless while on vacation and implemented the basics of rigid body physics simulation in osu-framework (see #656)! I won’t even begin to pretend that I understand the math behind this, but the implementation looks pretty solid.

Not sure how often we will use this in the case of osu!, but at very least the fail animations could be a lot more interesting than before!

Other things

  • Music control regression fixed (wasn’t changing songs) #667.
  • Visual Studio Code CLR debug support added (now a viable alternative to visual studio on windows) #666.
  • Fix regression causing menu cursor to stick to screen edges #664.
  • Decrease memory traffic in the thread scheduler#657.
  • Linux clipboard support added (read-only for now) #653.
  • Slider repeat sounds are now correctly reproduced #662.
  • The beginning of localisation support is now in at a framework level #651.

No release today

Let’s wait another day so the above changes can be completely reviewed and added!

comments