I think we need a bit more information and detail here.
What are you trying to do? and what’s in the data.txt file ? (model positions, model matricies, vertex attributes?)
Do you access the file each draw call, or do you read the entire file into memory first?
what I try to do…Well; show all records (draw)the scene; the animation environment. Into the file to have model matrix for build triangles, squares, lines…simple geometry.
How is the file access; well reading all the file since the first record until the bottom. and draw all the scene in one
call.