ive recently picked up open gl with the opentk using c#.
Ive got a relativly simple display of models using imported textures and poly lists.
Ive added lightmaps using multi textures, and it worked but was a bit slow so I re wrote it.
However now its even slower, although im only using calllists but the sudden slow down is puzzling,
it seems to suddenly slow down from about 100 fps to several seconds per frame when the number of textures and lightmap textures gets over about 17.
however before I rewrote it it wasnt this slow !
the only real difference is that im using textures from memory rather than from a bitmap file, the models display otherwise ok including the lightmap wich works fine for a simple room of 6 surfaces with 9 textures in total.
is there something else I might be doing wrong ? is the graphics card thrashing about with the textures wildly or something ? but its so strange it didnt do this before :s
and the strange thing is without lightmaps it runs just as fast even on maps with lots of textures, ive got a map with 148 textures wich runs at 50fps with virtualy no cpu usage.
yet as soon as I add 1 lightmap wich makes the texture count go above 17 or so it goes mega slow, ive waited over a minute for one frame lol.
Ive been scrathing my head on this for some time now, if any one has any ideas where to look ?