Package se.llbit.chunky.renderer

Examples of se.llbit.chunky.renderer.BenchmarkManager


    });
  }

  private synchronized void startBenchmark() {
    if (benchmark == null) {
      benchmark = new BenchmarkManager(context, BenchmarkDialog.this);
      benchmark.start();
      setStatus("running");
      setScore("N/A");
      startBtn.setEnabled(false);
      stopBtn.setEnabled(true);
View Full Code Here


   */
  private int doBenchmark(int renderThreads) {
    System.setProperty("java.awt.headless", "true");

    RenderContext renderContext = new RenderContext(options);
    BenchmarkManager benchmark = new BenchmarkManager(renderContext,
        new ConsoleRenderListener());
    benchmark.start();

    try {
      benchmark.join();
      BenchmarkDialog.recordBenchmarkScore(benchmark.getSceneName(),
          benchmark.getScore());
      System.out.println("Benchmark completed with score " + benchmark.getScore() +
          " (" + benchmark.getSceneName() + ")");
      return 0;
    } catch (InterruptedException e) {
      System.err.println("Benchmarking interrupted");
      return 1;
    }
View Full Code Here

TOP

Related Classes of se.llbit.chunky.renderer.BenchmarkManager

Copyright © 2018 www.massapicom. 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.