Twinklebear / LPCGame

Working on a C++ tile based 'engine' using SDL
MIT License
18 stars 1 forks source link

Optimizations and Editor Layout #20

Closed btstevens89 closed 11 years ago

btstevens89 commented 11 years ago

Improves program speed by only working with maps/sets when they're truly need. Added some caching to help with that. With this i'm pulling an average of 60~ fps with a 20x20 map. This works when running lpcgame.exe separately. For some reason when the program is run with Visual Studio's debugger there are some slowdowns.

Changed the layout of the editor a bit to make it look nicer. Added information on the selected tile.

Twinklebear commented 11 years ago

Ah I've noticed running in VS causes a good bit of slowdown as well, I'm not sure why.

I'll toss in the camera comparison operators and deference them for the comparison in map