I made a raycasting engine with wall textures. Before adding the texture the engine was silky smooth. With textures it has small lags (or stutters) when i move around and i would like to know why. My code is not super clean so im not providing it (yet). I'm looking for general tips on where to start when you want to optimize for performances. It's the first time i have to do this.
I monitored my pc performance while the engine was running. My CPU had very low usage and none of my cores were over 30%. Memory and disk usage were all fine. GPU was at 0% (its in 2d). All wall textures are loaded in memory at game launch so in theory my engine should not have to read from disk while running.
Im using Eclipse and the code is in Java + Swing.