I have been developing a massive RTS during the past 18 months, which is comming together nicely!
Now i have an issue i can't really wrap my head around.
If i render 100 models from a distance where the camera can see them all, everthing works perfectly. If i then render them when there camera is up close, my GPU goes to 100% and of course everything starts to lag. I don't really get the difference, the math is the same.
Works on Nvidia m1000m and burns on AMD RX5700. OpenGl version 4.1.
CPU, memory and GPU memory stays the same so i don't suspect any leaks.
I have tried debugging with glGetError() and CodeXL, no luck.
Am i missing something simple in OpenGL?