Commit graph

17929 commits

Author SHA1 Message Date
Tim Felgentreff
6cb6c66da3 prepare 3.3.0 release 2022-07-27 15:42:34 +02:00
Tim Felgentreff
7856578421 add a bit of documentation about complex map building 2022-07-27 10:55:52 +02:00
Tim Felgentreff
22e5643611 fix crash when graphic for flipped missile is loaded already as sprite 2022-07-27 10:22:19 +02:00
Tim Felgentreff
538dc024bb (i think) fix an assertion 2022-07-26 21:25:50 +02:00
Tim Felgentreff
cce87a51d2 fix accidental double-free 2022-07-26 21:25:50 +02:00
Tim Felgentreff
e4159d58e3 move tileset allocation to the explicit list of globals allocated in stratagusMain 2022-07-26 21:25:50 +02:00
Tim Felgentreff
d8ff81f90c fix loading games with units in containers that do not have a type yet 2022-07-26 21:25:50 +02:00
Tim Felgentreff
d5c916b724 make frame skip a preference
good values are
 1 - render only even frames
 3 - render only frames divisble by 4 (i.e., only 25%)

anything higher is probably just choppy
2022-07-26 21:25:44 +02:00
Tim Felgentreff
a2ddef78de Revert "no assert/debugprint in release builds"
This reverts commit 6b7afed5e7.
2022-07-26 17:58:40 +02:00
Tim Felgentreff
83a0c3ccf2 Revert "XXX: do not crash on exit"
This reverts commit 5da0cd0d01.
2022-07-26 17:58:30 +02:00
Tim Felgentreff
c2b0dcf7ba Merge branch 'master' of https://github.com/Wargus/stratagus 2022-07-26 17:58:20 +02:00
Tim Felgentreff
c2706c2cdb add workaround for potential crash on load 2022-07-10 14:42:41 +02:00
Tim Felgentreff
d21858dcef fix potential crash on map load 2022-07-10 14:41:36 +02:00
Tim Felgentreff
ca367b2fd1 Merge branch 'master' of https://github.com/Wargus/stratagus 2022-07-09 06:50:32 +02:00
Tim Felgentreff
d5c1e3a79c minor tweaks to micro-optimize performance for really slow machines 2022-07-09 06:50:18 +02:00
Tim Felgentreff
2abfb6a668
Merge pull request #403 from Ace17/memleak.genversion
Memleak.genversion
2022-07-05 13:43:49 +02:00
Sebastien Alaiwan
f94e4ae4b0 genversion: fix minor memory leak 2022-07-05 13:24:18 +02:00
Sebastien Alaiwan
0b97df3666 Cleanup: dead local variables 2022-07-05 13:24:18 +02:00
Tim Felgentreff
94a6d9ecd9 avoid free-cycle 2022-07-05 08:43:16 +02:00
Tim Felgentreff
1dc013f0b1 Merge branch 'master' of https://github.com/Wargus/stratagus 2022-06-29 20:07:05 +02:00
Tim Felgentreff
379567fcb0 more frame skipping, to work decently on rpi without accelleration 2022-06-29 19:42:48 +02:00
Tim Felgentreff
4936fa5d59 fix typo 2022-06-29 19:42:48 +02:00
Tim Felgentreff
afc5d8765b start skipping frames when we are too slow 2022-06-29 19:42:48 +02:00
Tim Felgentreff
104d89de91 re-order to fix compilation 2022-06-29 19:42:48 +02:00
Tim Felgentreff
1d8c81d09a re-enable simd test functions 2022-06-29 19:42:48 +02:00
Tim Felgentreff
13b20e1080 XXX: do not crash on exit 2022-06-29 19:42:48 +02:00
Tim Felgentreff
beab00da26 no assert/debugprint in release builds 2022-06-29 19:42:48 +02:00
Tim Felgentreff
109bc10e0f report benchmark results with cycles 2022-06-29 19:42:47 +02:00
Tim Felgentreff
553d660d39 comment unused cpu feature test code, align 512bits for AVX-512 2022-06-29 19:42:47 +02:00
Tim Felgentreff
89e8560cd2 make max iterations for astar configurable 2022-06-29 19:42:47 +02:00
Tim Felgentreff
8d35af98b2 change astar reset optimization to instead rely on memory alignment and
the compiler optimizations for memset/memmove on aligned memory chunks
with modern CPUs
2022-06-29 19:42:47 +02:00
Tim Felgentreff
71608824e5 reduce load on AI cycles by limiting how many forces may scan the map in one cycle 2022-06-28 06:55:48 +02:00
Tim Felgentreff
f7c12a74f0 improve performance of AiEnemyUnitsInDistance 2022-06-28 06:55:46 +02:00
Tim Felgentreff
5da0cd0d01 XXX: do not crash on exit 2022-06-27 10:13:51 +02:00
Tim Felgentreff
6b7afed5e7 no assert/debugprint in release builds 2022-06-27 10:13:36 +02:00
Tim Felgentreff
300db83ef4 minor usability improvement for panel conditions 2022-06-17 22:02:32 +02:00
Tim Felgentreff
fdab365096 fix compilation without Mng support 2022-06-16 16:54:13 +02:00
Tim Felgentreff
44f77f2a56 expose Mng.MaxFPS to lua to set the max playback speed for mngs 2022-06-16 16:54:11 +02:00
Tim Felgentreff
a6416559d2 delete manually allocated UnitManager and FogOfWar 2022-06-16 16:54:08 +02:00
Tim Felgentreff
de85036ab5 fix potential crash when lazily loading a sound that doesn't exist 2022-06-16 06:22:53 +02:00
Tim Felgentreff
0ffa991395 mng widgets are always dirty 2022-06-16 06:22:51 +02:00
Tim Felgentreff
dfcf5f8da7 fix invalid sharing of mngs in copied unit type 2022-06-16 06:22:49 +02:00
Tim Felgentreff
d17c2cc1bc fix wrong condition for mng lazy loading 2022-06-05 13:25:56 +02:00
Tim Felgentreff
08126fb95a fix compile error 2022-06-05 13:19:19 +02:00
Tim Felgentreff
0d76640102 fix swapped mng sizes 2022-06-03 22:19:48 +02:00
Tim Felgentreff
a14c4f539a fix debug printing with dummy renderer 2022-06-01 17:17:42 +02:00
Tim Felgentreff
99f26b1156 don't waste time drawing map tiles below fog of war 2022-06-01 17:17:36 +02:00
Tim Felgentreff
c62e1702e6 make full black in mngs be transparent 2022-06-01 17:17:28 +02:00
Tim Felgentreff
2541939ca2 fix exit when no map was created 2022-05-30 22:27:14 +02:00
Tim Felgentreff
ad332c9a87 Merge from rpi 2022-05-30 22:20:53 +02:00