Skip to content

Commit

Permalink
event count print + increase thread pool size
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-hydrogen committed Jul 25, 2022
1 parent 38d728b commit dd98bf2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public BeatmapPlayer(String sound, String name, boolean useChroma) {
public InfoData play(List<CrossCompatPlayer> playTo) {
List<LightChannel> channelList = Arrays.asList(LightChannel.values());
this.playTo = playTo;
executorService = Executors.newScheduledThreadPool(1);
executorService = Executors.newScheduledThreadPool(7);
playTo.forEach((player) -> player.playSound(player.getLocation(), sound, 1, 1));
isPlaying = true;
Nightclub.getLightUniverseManager().getLoadedUniverse().getRings().forEach(Ring::reset);
Expand All @@ -59,6 +59,7 @@ public InfoData play(List<CrossCompatPlayer> playTo) {
channelList.forEach(LightChannel::initializePlayback);

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

0 comments on commit dd98bf2

Please sign in to comment.