A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to perform operations for processing an electronic image, the operations comprising:
- receiving, by a slide viewer, the electronic image and a field of view (FOV) of the electronic image, wherein the FOV includes at least one coordinate, at least one dimension, and a magnification factor;
- loading, by the slide viewer and from a cache of the slide viewer, one or more first tiles of a plurality of tiles within the FOV;
- determining, by the slide viewer, that one or more second tiles of the plurality of tiles within the FOV are not in the cache;
- requesting, by the slide viewer, one or more images of the one or more second tiles based on the determining;
- determining, by the slide viewer and after requesting the one or more electronic images, that the one or more second tiles have the one or more electronic images and do not have one or more textures in the cache;
- and
- rendering, by the slide viewer, the plurality of tiles to a display after requesting the one or more images.