Progress bars

Can anyone explain to me progress bars. I know what they are used for but how does one determine when to increase the bar. I’m talking about progress bars used when loading files. I would like my engine to have a progress bar but Im not sure how to decide when the bar should be increased. Do you do it based on how far you are in the file? or time or what?

Hi !

Most progressbars used in this way will show the position in file, the amount of loaded data or whatever because this is the easiest thing to do.

Calculating the correct time left is the best thing to do, but it can be pretty tricky to calculate depending on how the data is loaded.

Mikael