editor optimization

This commit is contained in:
KadeDeveloper
2021-07-26 14:04:33 -07:00
parent a0471bdd35
commit 952a4464da

View File

@ -1492,8 +1492,8 @@ class ChartingState extends MusicBeatState
for(i in sectionRenderes) for(i in sectionRenderes)
{ {
var diff = getYfromStrum(i.y) - Conductor.songPosition; var diff = i.y - strumLine.y;
if (diff < 10000 && diff >= -40000) if (diff < 4000 && diff >= -4000)
{ {
i.active = true; i.active = true;
i.visible = true; i.visible = true;
@ -1507,8 +1507,8 @@ class ChartingState extends MusicBeatState
for(i in curRenderedNotes) for(i in curRenderedNotes)
{ {
var diff = i.strumTime - Conductor.songPosition; var diff = i.y - strumLine.y;
if (diff < 10000 && diff >= -40000) if (diff < 4000 && diff >= -4000)
{ {
i.active = true; i.active = true;
i.visible = true; i.visible = true;