mirror of
https://git.planet-casio.com/Fcalva/Copy3DEngine.git
synced 2024-12-29 13:03:44 +01:00
Utilisation de dma_memset au lieu de drect() (-4ms/frame)
This commit is contained in:
parent
5f8037edf9
commit
61c4ca9135
1 changed files with 8 additions and 2 deletions
10
src/main.c
10
src/main.c
|
@ -4,6 +4,8 @@
|
||||||
#include <gint/display.h>
|
#include <gint/display.h>
|
||||||
#include <gint/keyboard.h>
|
#include <gint/keyboard.h>
|
||||||
#include <gint/image.h>
|
#include <gint/image.h>
|
||||||
|
#include <gint/dma.h>
|
||||||
|
#include <gint/gdb.h>
|
||||||
#include <libprof.h>
|
#include <libprof.h>
|
||||||
|
|
||||||
#include "fixed.h"
|
#include "fixed.h"
|
||||||
|
@ -27,6 +29,8 @@
|
||||||
|
|
||||||
//#define debug //pour afficher les infos de debug
|
//#define debug //pour afficher les infos de debug
|
||||||
|
|
||||||
|
//extern uint16_t *gint_vram;
|
||||||
|
|
||||||
image_t *tex_index[TINDEX_S];
|
image_t *tex_index[TINDEX_S];
|
||||||
|
|
||||||
extern char map_test[map_w][map_h];
|
extern char map_test[map_w][map_h];
|
||||||
|
@ -110,8 +114,10 @@ int main(){
|
||||||
prof_t frame = prof_make();
|
prof_t frame = prof_make();
|
||||||
prof_enter(frame);
|
prof_enter(frame);
|
||||||
|
|
||||||
drect(0, 0, 395, 112, 0x9dbd);
|
//Big brain drect()
|
||||||
drect(0,112, 395, 243, 0xc4c9);
|
dma_memset(gint_vram, 0x9dbd9dbd, viewport_w*viewport_h);
|
||||||
|
dma_memset((void*)((uint32_t)gint_vram + viewport_w*viewport_h),
|
||||||
|
0xc4c9c4c9, viewport_w*viewport_h);
|
||||||
|
|
||||||
draw_walls(frame_buffer);
|
draw_walls(frame_buffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue