Skip to content

Commit

Permalink
trying to reduce flicker
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj committed May 17, 2023
1 parent d618351 commit 0302038
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/neuroglancer/chunk_manager/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,10 @@ export class ChunkQueueManager extends SharedObject {
if (newState !== oldState) {
switch (newState) {
case ChunkState.GPU_MEMORY:
// console.log("Copying to GPU", chunk);
chunk.copyToGPU(this.gl);
visibleChunksChanged = true;
if (chunk.constructor.name !== "ManifestChunk") {
visibleChunksChanged = true;
}
break;
case ChunkState.SYSTEM_MEMORY:
chunk.freeGPUMemory(this.gl);
Expand Down

0 comments on commit 0302038

Please sign in to comment.