mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 06:47:24 +08:00
Add some more commenting to lifetime calculation
This commit is contained in:
parent
f3fddcc82c
commit
52e3ffff30
@ -23,8 +23,10 @@ namespace osu.Game.Rulesets.UI.Scrolling.Visualisers
|
|||||||
{
|
{
|
||||||
foreach (var obj in hitObjects)
|
foreach (var obj in hitObjects)
|
||||||
{
|
{
|
||||||
// For optimal lifetimes, the speed of the hitobject is factored into the time range
|
// The total amount of time that the hitobject will remain visible within the timeRange, which decreases as the speed multiplier increases
|
||||||
obj.LifetimeStart = obj.HitObject.StartTime - timeRange / controlPointAt(obj.HitObject.StartTime).Multiplier;
|
double visibleDuration = timeRange / controlPointAt(obj.HitObject.StartTime).Multiplier;
|
||||||
|
|
||||||
|
obj.LifetimeStart = obj.HitObject.StartTime - visibleDuration;
|
||||||
|
|
||||||
if (obj.HitObject is IHasEndTime endTime)
|
if (obj.HitObject is IHasEndTime endTime)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user