Skip to content

Commit dd98bf2

Browse files
committed
event count print + increase thread pool size
1 parent 38d728b commit dd98bf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Core/src/main/java/exposed/hydrogen/nightclub/beatmap/BeatmapPlayer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public BeatmapPlayer(String sound, String name, boolean useChroma) {
4949
public InfoData play(List<CrossCompatPlayer> playTo) {
5050
List<LightChannel> channelList = Arrays.asList(LightChannel.values());
5151
this.playTo = playTo;
52-
executorService = Executors.newScheduledThreadPool(1);
52+
executorService = Executors.newScheduledThreadPool(7);
5353
playTo.forEach((player) -> player.playSound(player.getLocation(), sound, 1, 1));
5454
isPlaying = true;
5555
Nightclub.getLightUniverseManager().getLoadedUniverse().getRings().forEach(Ring::reset);
@@ -59,6 +59,7 @@ public InfoData play(List<CrossCompatPlayer> playTo) {
5959
channelList.forEach(LightChannel::initializePlayback);
6060

6161
long startTime = System.currentTimeMillis();
62+
Nightclub.getChameleon().getLogger().info("Event count: " + events.size());
6263
for (int i = 0; i < events.size(); i++) {
6364
// account for the time it takes to parse the beatmap in the first place
6465
long diff = System.currentTimeMillis()-startTime;

0 commit comments

Comments
 (0)