Package net.minecraft.profiler

Examples of net.minecraft.profiler.Profiler.startSection()


    }

    HashSet<ChunkCoordIntPair> activeChunkSet = chunkTickSet;
    if (tickCount % 7 == 0) {
      Profiler profiler = this.theProfiler;
      profiler.startSection("buildList");

      activeChunkSet.clear();
      activeChunkSet.addAll(getPersistentChunks().keySet());
      List<EntityPlayer> playerEntities = this.playerEntities;
      for (EntityPlayer entityPlayer : playerEntities) {
View Full Code Here


      if (this.ambientTickCountdown > 0) {
        --this.ambientTickCountdown;
      }

      profiler.startSection("playerCheckLight");

      Random rand = this.rand;
      if (!playerEntities.isEmpty()) {
        EntityPlayer entityPlayer = playerEntities.get(rand.nextInt(playerEntities.size()));
        if (entityPlayer != null) {
View Full Code Here

  }

  @Override
  public void updateEntities() {
    final Profiler theProfiler = this.theProfiler;
    theProfiler.startSection("updateEntities");
    int var1;
    Entity weatherEffect;
    CrashReport var4;
    CrashReportCategory var5;
View Full Code Here

  }

  @Override
  public void updateTimeLightAndEntities() {
    final Profiler profiler = theProfiler;
    profiler.startSection("levels");

    runQueuedTasks();

    Integer[] dimensionIdsToTick = this.dimensionIdsToTick = DimensionManager.getIDs();
View Full Code Here

    int var1;
    Entity weatherEffect;
    CrashReport var4;
    CrashReportCategory var5;

    theProfiler.startSection("global");
    final List<Entity> weatherEffects = this.weatherEffects;
    synchronized (weatherEffects) {
      Iterator<Entity> iterator = weatherEffects.iterator();
      while (iterator.hasNext()) {
        weatherEffect = iterator.next();
View Full Code Here

          weatherEffect.ridingEntity.riddenByEntity = null;
          weatherEffect.ridingEntity = null;
        }

        theProfiler.startSection("tick");

        if (!weatherEffect.isDead) {
          try {
            updateEntity(weatherEffect);
          } catch (Throwable var7) {
View Full Code Here

      if (world.getDimension() != id) {
        Log.severe("World " + world.getName() + " exists in DimensionManager with an apparently incorrect dimension ID of " + id);
        continue;
      }
      try {
        profiler.startSection(world.getWorldInfo().getWorldName());
        profiler.startSection("pools");
        world.getWorldVec3Pool().clear();
        profiler.endSection();

        int tickCount = world.tickCount;
View Full Code Here

            throw new ReportedException(var4);
          }
        }

        theProfiler.endSection();
        theProfiler.startSection("remove");

        if (weatherEffect.isDead) {
          var3 = weatherEffect.chunkCoordX;
          var13 = weatherEffect.chunkCoordZ;
View Full Code Here

        Log.severe("World " + world.getName() + " exists in DimensionManager with an apparently incorrect dimension ID of " + id);
        continue;
      }
      try {
        profiler.startSection(world.getWorldInfo().getWorldName());
        profiler.startSection("pools");
        world.getWorldVec3Pool().clear();
        profiler.endSection();

        int tickCount = world.tickCount;
        if (tickCount % 30 == 0) {
View Full Code Here

        world.getWorldVec3Pool().clear();
        profiler.endSection();

        int tickCount = world.tickCount;
        if (tickCount % 30 == 0) {
          profiler.startSection("timeSync");
          long totalTime = world.getTotalWorldTime();
          boolean doDaylightCycle = world.getGameRules().getGameRuleBooleanValue("doDaylightCycle");
          for (EntityPlayerMP entityPlayerMP : (Iterable<EntityPlayerMP>) world.playerEntities) {
            entityPlayerMP.playerNetServerHandler.sendPacketToPlayer(new Packet4UpdateTime(totalTime, entityPlayerMP.getPlayerTime(), doDaylightCycle));
          }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.