Utilisation de dma_memset au lieu de drect() (-4ms/frame)

This commit is contained in:
attilavs2 2024-08-02 16:18:25 +02:00
parent 5f8037edf9
commit 61c4ca9135

View file

@ -4,6 +4,8 @@
#include <gint/display.h>
#include <gint/keyboard.h>
#include <gint/image.h>
#include <gint/dma.h>
#include <gint/gdb.h>
#include <libprof.h>
#include "fixed.h"
@ -27,6 +29,8 @@
//#define debug //pour afficher les infos de debug
//extern uint16_t *gint_vram;
image_t *tex_index[TINDEX_S];
extern char map_test[map_w][map_h];
@ -110,8 +114,10 @@ int main(){
prof_t frame = prof_make();
prof_enter(frame);
drect(0, 0, 395, 112, 0x9dbd);
drect(0,112, 395, 243, 0xc4c9);
//Big brain drect()
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);