Hi, I’m trying to make my own bmp image rendering function myself without using SDL_image for pratice.
However, cpu usage was too high compare to SDL_image.
I used SDL_RenderDrawPoint() and multi-for statement for drawing an image.
When I put my own function to while loop (main sdl loop), the cpu usage went crazy.
I think it’s because I didn’t use GPU for rendering, so can someone give me some advises or solutions for this?
This also happens when I rendering a lot of images. How can I make my SDL faster and less cpu using compare to other programs?
Please help me.