At first I use 24 frame(24 images) with Default Encoing(Linear Encoding) to make a loop animation:
interTime += delta;
if (interTime > 1.0 / 24.0) {
interTime = 0;
scene.background = ImageListA[imageIndex];
imageIndex += 1 * fixed;
if (imageIndex > ImageListA.length - 1) {
imageIndex = ImageListA.length - 1;
fixed = -1;
}
if (imageIndex < 0) {
imageIndex = 0;
fixed = 1;
}
}
and it works fine with Linear Encoding.
But when I change the encoind to sRGB:
ImageList.forEach(image => {
image.encoding = THREE.sRGBEncoding;
});
The whole scene plays in a low frame rate at first play(the first 24frame), why and how to solve it?
Is sRGB less efficient than Linear? But why low-frame-rate happeds only first play?