In the official example: (raylib [textures] example - Sprite animation)

the way it is choosen as follows:

  1. Load texture: Texture2D scarfy = LoadTexture("resources/scarfy.png");
  2. Define frame rectangle: Rectangle frameRec = { 0.0f, 0.0f, (float)scarfy.width/6, (float)scarfy.height };
  3. Draw a smaller part of the Texture (sacarfy) using the rectangle.

DrawTextureRec(scarfy, frameRec, position, WHITE); // Draw part of the texture

is it a performant way? The other game frameworks using different systems i only wanted to be sure.