underflow

2 replies [Last post]
by: Borg Drone
Status: Offline
Joined: 2012-05-02
Points: 840

Hi,

I am loading my resources from one file (custom made, not built in). In debug mode loading from file is very very slow. I mean it is very hard to debug waiting every time. Also in release it is not too fast. As far as I could find out this one is slow:

_STL::basic_filebuf >::underflow

I mean it basically means reading is very slow. I am testing this on x86 emulator. Any ideas why is reading so slow?

by: bluescrn
Status: Offline
Joined: 2011-02-26
Points: 7810
Have you tried without STL,

Have you tried without STL, just using fopen/fread/fclose?

I'm using my own file format/data building tools, and haven't noticed performance problems in the simulators. I generally load a file in one big read, then decompress it into another memory buffer - I don't have anything doing lots of seeking or small reads, though.

by: Borg Drone
Status: Offline
Joined: 2012-05-02
Points: 840
As a last resort I will try

As a last resort I will try to make everything without using STL. But really I would like to avoid it since there is a lot of code.
Thanks for suggestion.

Latest Posts

Latest Comments

Top Contributors

  • Chris D : 27,010
  • MonRoyals : 26,970
  • Salman : 26,720
  • Jez Hammond : 20,130
  • pjan : 11,150
  • gjw : 10,350
  • Paolo Oliverio : 9,640
  • Beaker_2 : 8,390
  • Kite : 8,210
  • bluescrn : 7,810