Skip to content

Commit

Permalink
lint: format
Browse files Browse the repository at this point in the history
  • Loading branch information
piellardj authored and Sceat committed Mar 17, 2024
1 parent a86b272 commit fc33000
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PatchFactoryGpu } from './patch-factory-gpu';
type PatchGenerationState = {
cpuFinished?: Promise<unknown>;
gpuFinished?: Promise<unknown>;
}
};

class PatchFactoryGpuOptimized extends PatchFactoryGpu {
private nextPatchGenerationId = 0;
Expand All @@ -23,7 +23,7 @@ class PatchFactoryGpuOptimized extends PatchFactoryGpu {
if (voxelsCountPerPatch <= 0) {
return [];
}

const patchGenerationId = this.nextPatchGenerationId++;
// console.log(`Asking for patch ${patchGenerationId}`);
this.patchGenerationPromises[patchGenerationId] = {};
Expand Down Expand Up @@ -60,7 +60,7 @@ class PatchFactoryGpuOptimized extends PatchFactoryGpu {
// console.log(`CPU ${patchGenerationId} start`);
const localMapCache = this.buildLocalMapCache(patchStart, patchEnd);
// console.log(`CPU ${patchGenerationId} end`);

const gpuStartPrerequisites = new Promise<void>(resolve => {
if (patchGenerationId === 0) {
resolve();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/terrain/terrain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IVoxelMap } from './i-voxel-map';
import { EDisplayMode } from './patch/patch';
import { EPatchComputingMode, PatchFactoryBase } from './patch/patch-factory/patch-factory-base';
import { PatchFactoryCpu } from './patch/patch-factory/split/cpu/patch-factory-cpu';
import { PatchFactoryGpuOptimized } from "./patch/patch-factory/split/gpu/patch-factory-gpu-optimized";
import { PatchFactoryGpuOptimized } from './patch/patch-factory/split/gpu/patch-factory-gpu-optimized';
import { PatchFactoryGpuSequential } from './patch/patch-factory/split/gpu/patch-factory-gpu-sequential';

type TerrainOptions = {
Expand Down

0 comments on commit fc33000

Please sign in to comment.