mirror of
https://github.com/holub/mame
synced 2025-05-09 15:51:48 +03:00
![]() Sent: Monday, February 16, 2009 1:03 PM To: submit@mamedev.org Subject: Speed up 'src\mame\video\mcatadv.c' Hi, here is a patch against 'src\mame\video\mcatadv.c' This patch moves a call to 'memory_region' outside of a hot loop in the 'draw_sprites' function. This gives a fiew pourcents speed up in games such as 'nost'. Hope this helps, Best regards, Christophe Jaillet -- From: Christophe Jaillet [christophe.jaillet@wanadoo.fr] Sent: Monday, February 16, 2009 1:53 PM To: submit@mamedev.org Subject: Another speed up in 'src\mame\video\mcatadv.c' Hi, here is a patch against 'src\mame\video\mcatadv.c' This patch , by re-arranging the code, give a +/- 5% speed up in the emulation. Before, we : - fetch a pixel, - make some computation for lower/higher part of it - check if we should render it - test for priority - update destination if necessary With this patch, we check priority first in order to avoid useless processing and testing on pixel that can't be displayed due to priority reason. So in the best case, it is faster, in the worse case execution time should be more or less the same because : if ((drawxpos >= cliprect->min_x) && (drawxpos <= cliprect->max_x) && pix) is likely to be true (IMO). So the same tests are performed, only the order is different. Hope this helps, Best regards, Christophe Jaillet -- From: Christophe Jaillet [christophe.jaillet@wanadoo.fr] Sent: Monday, February 16, 2009 1:09 PM To: submit@mamedev.org Subject: Clean up of 'src\emu\tilemap.c' (with the patch...) Hi, here is a patch against 'src\emu\tilemap.c' This patch removes a variable called 'original_cliprect' from the top of 'tilemap_get_tile_flags'. This variable is useless because all cases that need it, already make the same copy in a variable with the same name, shodawing the former one. Hope this helps, Best regards, Christophe Jaillet |
||
---|---|---|
docs | ||
src | ||
.gitattributes | ||
makefile |