Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | src/main.c: It's summer somewhere... | P. J. McDermott | 2013-03-05 | 1 | -5/+19 |
| | |||||
* | Change the viewport size. | P. J. McDermott | 2013-03-05 | 2 | -3/+3 |
| | |||||
* | src/main.c: Make demo day length less hardcoded. | P. J. McDermott | 2013-03-04 | 1 | -5/+7 |
| | |||||
* | src/area.c: Disable RLE on area layers. | P. J. McDermott | 2013-03-04 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mostly fixes the performance regression introduced by merging the palette cycling and map movement demos. I removed the 10-ms delay between frames in the demo and tested the framerates: Test Framerate with RLE (fps) Framerate without RLE (fps) 1 160.306202859 1730.255164034 2 142.599639495 1758.024691358 3 167.588560668 1797.97979798 4 162.279202279 1764.560099133 5 157.278550917 1625.570776256 avg 158.010431244 1735.278105752 I then restored the delay and watched the CPU usage: CPU usage with RLE CPU usage without RLE ~9.00% ~1.00% This is happening because we're now cycling palettes each frame and, as a result, SDL needs to decode and encode the surfaces each frame to map palettes (though I'm not sure why it needs a decoded surface just to map palettes). (Normally, we probably wouldn't cycle palettes /each frame/, so this is something of an extreme case.) See for example the SDL_UnRLESurface() call at line 551 of src/video/SDL_pixels.c in SDL 1.2.15. | ||||
* | Add a sprite color to palettes. | P. J. McDermott | 2013-03-04 | 5 | -2/+10 |
| | |||||
* | Support palette cycling in area layers. | P. J. McDermott | 2013-03-04 | 3 | -37/+18 |
| | |||||
* | src/main.c: Merge palette cycling & walking demos. | P. J. McDermott | 2013-03-04 | 1 | -106/+60 |
| | |||||
* | Make palette cycling a real part of the engine. | P. J. McDermott | 2013-03-04 | 4 | -95/+180 |
| | |||||
* | src/main.c: Tweak cosine palette cycling macro. | P. J. McDermott | 2013-03-04 | 1 | -4/+19 |
| | |||||
* | Add generated 58-color palettes. | P. J. McDermott | 2013-03-04 | 4 | -0/+244 |
| | | | | | | | day.gpl: the set of colors used by the forest tileset. night.gpl: day.gpl with 25.0% of red, 25.0% of green, and 50.0% of blue. eve.gpl: day.gpl with 87.5% of red, 62.5% of green, and 62.5% of blue. morn.gpl: day.gpl with 100% of red, 87.5% of green, and 62.5% of blue. | ||||
* | data/tilesets/collision.tsx: Fix image source. | P. J. McDermott | 2013-03-03 | 1 | -1/+1 |
| | |||||
* | data/maps/forest1-8bit.tmx: Add palette refs. | P. J. McDermott | 2013-03-03 | 1 | -1/+8 |
| | |||||
* | Add a default map palette. | P. J. McDermott | 2013-03-03 | 2 | -3/+19 |
| | |||||
* | Support palette properties in maps. | P. J. McDermott | 2013-03-03 | 2 | -5/+89 |
| | |||||
* | src/resources/palette.c: Fix EOF handling. | P. J. McDermott | 2013-03-03 | 1 | -0/+3 |
| | |||||
* | src/main.c: Run morn->day->eve->night cycle. | P. J. McDermott | 2013-03-02 | 1 | -34/+97 |
| | |||||
* | Write a GIMP palette parser. | P. J. McDermott | 2013-03-02 | 3 | -1/+183 |
| | |||||
* | src/main.c: Run day/night cycle on minutes clock. | P. J. McDermott | 2013-03-02 | 1 | -29/+41 |
| | |||||
* | src/main.c: Use cosine curve for day-night cycle. | P. J. McDermott | 2013-03-02 | 1 | -7/+23 |
| | |||||
* | src/main.c: Run a day->night palette cycling demo. | P. J. McDermott | 2013-03-02 | 1 | -10/+30 |
| | |||||
* | src/area.c: Split up area_new(). | P. J. McDermott | 2013-03-02 | 2 | -12/+25 |
| | |||||
* | src/resources/image.c: Clean up palette debugging. | P. J. McDermott | 2013-02-24 | 1 | -9/+13 |
| | |||||
* | Optionally list palette colors of loaded images. | P. J. McDermott | 2013-02-22 | 2 | -3/+28 |
| | |||||
* | Clean up dirstamp for data/tilesets/. | P. J. McDermott | 2013-02-22 | 3 | -0/+4 |
| | |||||
* | configure.ac: Add an AC_CONFIG_AUX_DIR() macro. | P. J. McDermott | 2013-02-22 | 1 | -0/+1 |
| | |||||
* | Define installation directory preprocessor macros. | P. J. McDermott | 2013-02-20 | 4 | -1/+13 |
| | |||||
* | Prevent segmentation faults in some places. | P. J. McDermott | 2013-02-20 | 2 | -3/+24 |
| | |||||
* | Organize maps in their own directory. | P. J. McDermott | 2013-02-20 | 7 | -9/+29 |
| | |||||
* | Improve build system. | P. J. McDermott | 2013-02-20 | 9 | -18/+52 |
| | |||||
* | .gitignore: Update. | P. J. McDermott | 2013-02-20 | 1 | -0/+3 |
| | |||||
* | Distribute headers and data. | P. J. McDermott | 2013-02-20 | 3 | -10/+21 |
| | |||||
* | Clean up some "#if 0" conditions. | P. J. McDermott | 2013-02-19 | 5 | -217/+15 |
| | |||||
* | Disable TMX parser debugging noise by default. | P. J. McDermott | 2013-02-19 | 3 | -0/+90 |
| | |||||
* | Enable and fix a bunch of GCC warnings. | P. J. McDermott | 2013-02-19 | 10 | -18/+29 |
| | |||||
* | Try to get some small performance improvements. | P. J. McDermott | 2013-02-19 | 2 | -2/+3 |
| | |||||
* | Enable more GCC warnings. | P. J. McDermott | 2013-02-19 | 2 | -1/+5 |
| | |||||
* | src/area.c: Consolidate area layer creation code. | P. J. McDermott | 2013-02-19 | 1 | -38/+16 |
| | |||||
* | data/forest1-8bit.tmx: Add. | P. J. McDermott | 2013-02-19 | 1 | -0/+63 |
| | |||||
* | Limit surfaces to 8 bpp. Set keys and palettes. | P. J. McDermott | 2013-02-19 | 4 | -30/+74 |
| | | | | Also clean up main() a bit more. | ||||
* | Add struct map * member to struct area. | P. J. McDermott | 2013-02-19 | 3 | -24/+26 |
| | |||||
* | Merge src/layer.h into src/area.h. | P. J. McDermott | 2013-02-19 | 3 | -13/+6 |
| | |||||
* | Consolidate area layers a bit. | P. J. McDermott | 2013-02-19 | 2 | -28/+30 |
| | | | | Statically blit together as much as possible before rendering. | ||||
* | Adjust height of demo "sprite". | P. J. McDermott | 2013-02-19 | 1 | -3/+3 |
| | |||||
* | Make demo smoother. | P. J. McDermott | 2013-02-19 | 1 | -16/+16 |
| | |||||
* | Improve demo and clean up main(). | P. J. McDermott | 2013-02-19 | 2 | -153/+58 |
| | |||||
* | Attempt to store surfaces in video memory. | P. J. McDermott | 2013-02-19 | 2 | -2/+2 |
| | | | | This shouldn't noticably affect performance on any modern PC. | ||||
* | configure.ac: Check for inttypes.h. | P. J. McDermott | 2013-02-19 | 1 | -0/+1 |
| | |||||
* | Fix graphics glitch with negative viewport coords. | P. J. McDermott | 2013-02-19 | 2 | -15/+34 |
| | |||||
* | Implement and test renderer. | P. J. McDermott | 2013-02-19 | 4 | -15/+222 |
| | |||||
* | Make the tileset firstgid a Uint32. | P. J. McDermott | 2013-02-18 | 4 | -5/+31 |
| |