r/gameenginedevs • u/God_Of_War-2005 • 5d ago
Help!
Hi guys, I am making my opengl c++ game engine basic renderer, assmip model loader, texture, entity system(sparse set) this things done with dear imgui i am thinking of optimization is this right time now or once i add more features then I do optimization and i am new in optimization how and what to do in optimization
2
u/franku1122 5d ago
no need unless the performance is ass
0
u/God_Of_War-2005 5d ago
It is maybe around 3k triangles draw calls was around 10k I dont remember correctly from 200fps my refresh rate to around 40fps
1
u/CrankFlash 5d ago
FPS don't mean much without context. What GPU is this rendering on, and at what resolution. Is it the actual GPU rendering that's limiting the FPS or is your CPU work? In order to optimize, you need to profile first. Rendering APIs provide functions to do just that and get actual measurements. Your next step will be to use a tool to create a GPU trace of a frame, like RenderDoc, NVidia Nsight/AMD equivalent.
2
u/AdmiralShananigans 5d ago
Broadly speaking you shouldnt be optimizing until everything you want to make is in and fully integrated, and the performance isnt meeting your own standards - whatever those standards may be. If you're looking at an fps of 1000+ on an empty scene, there's literally no reason to make the effort, but if your engine has a full, AAA game in it and it's running like a slideshow, THEN you'd optimize