I am currently using SOIL to load DDS images , Single DDS image of size 1920 X 1080 takes about 8 milliseconds to load to the disk using SOIL_Load_Image function.
When i try to load the same image using DevIL it takes about 50 milliseconds to load , i am using ilLoadImage function.
Though i am very new to Devil Library is it slow compared to SOIL ?
This is going to be primarily a disk-limited operation. If you’re not clearing the disk cache before each test, running each test many times to collect samples, running with each library in the same state each time, and asking each library to perform exactly the same operation, then your timings could be at best apples-and-oranges, or at worst meaningless.
If you’re not clearing the disk cache before each test, and repeating each sample collection a number of times, I’d start with that. Re disk cache, on Windows that has the non-intuitive name “Standby List”. You can use a tool such as RAMMap or Process Hacker to clear it.
Also, it’s unclear why in the DeviL case you’re doing your own file open+read+close and then just spoon-feeding the loaded memory block to the DeviL library.