this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

revert src/system/sdl/main.c

alice 36f53a9f 018c84d8

+1 -28
+1 -28
src/system/sdl/main.c
··· 248 248 #if defined(CRT_SHADER_SUPPORT) 249 249 if(!studio_config(platform.studio)->soft) 250 250 { 251 - // printf("calling GPU_Clear\n"); 252 251 GPU_Clear(renderer.gpu); 253 - // printf("GPU_Clear done\n"); 254 252 } 255 253 else 256 254 #endif ··· 563 561 if(!soft) 564 562 { 565 563 s32 w, h; 566 - printf("here1\n"); 567 564 SDL_GetWindowSize(platform.window, &w, &h); 568 - printf("here2\n"); 569 565 570 566 GPU_SetInitWindow(SDL_GetWindowID(platform.window)); 571 - printf("here3\n"); 572 567 GPU_SetPreInitFlags(vsync ? GPU_INIT_ENABLE_VSYNC : GPU_INIT_DISABLE_VSYNC); 573 - printf("here4\n"); 574 568 platform.screen.renderer.gpu = GPU_Init(w, h, GPU_DEFAULT_INIT_FLAGS); 575 - printf("here5\n"); 576 569 GPU_SetWindowResolution(w, h); 577 - printf("here6\n"); 578 570 GPU_SetVirtualResolution(platform.screen.renderer.gpu, w, h); 579 - printf("here7\n"); 580 571 581 572 platform.screen.texture.gpu = GPU_CreateImage(TIC80_FULLWIDTH, TIC80_FULLHEIGHT, GPU_FORMAT_RGBA); 582 - printf("here8\n"); 583 573 GPU_SetAnchor(platform.screen.texture.gpu, 0, 0); 584 - printf("here9\n"); 585 574 GPU_SetImageFilter(platform.screen.texture.gpu, GPU_FILTER_NEAREST); 586 - printf("here10\n"); 587 575 } 588 576 else 589 577 #endif 590 578 { 591 - printf("here11\n"); 592 579 platform.screen.renderer.sdl = SDL_CreateRenderer(platform.window, -1, 593 580 #if defined(CRT_SHADER_SUPPORT) 594 581 SDL_RENDERER_SOFTWARE ··· 597 584 #endif 598 585 | (!soft && vsync ? SDL_RENDERER_PRESENTVSYNC : 0) 599 586 ); 600 - printf("here12\n"); 587 + 601 588 platform.screen.texture.sdl = SDL_CreateTexture(platform.screen.renderer.sdl, SDL_PIXELFORMAT_ABGR8888, 602 589 SDL_TEXTUREACCESS_STREAMING, TIC80_FULLWIDTH, TIC80_FULLHEIGHT); 603 590 } ··· 1717 1704 1718 1705 static void gpuTick() 1719 1706 { 1720 - // printf("gpuTick starting\n"); 1721 1707 const tic_mem* tic = studio_mem(platform.studio); 1722 - // printf("tic is %p\n", tic); 1723 - 1724 - // printf("calling pollEvents\n"); 1725 1708 pollEvents(); 1726 - // printf("pollEvents done\n"); 1727 1709 1728 1710 if(studio_alive(platform.studio)) 1729 1711 { ··· 1735 1717 1736 1718 LOCK_MUTEX(platform.audio.mutex) 1737 1719 { 1738 - // printf("calling studio_tick\n"); 1739 1720 studio_tick(platform.studio, platform.input); 1740 - // printf("studio_tick done\n"); 1741 1721 } 1742 1722 1743 - // printf("calling renderClear\n"); 1744 1723 renderClear(platform.screen.renderer); 1745 - // printf("renderClear done\n"); 1746 1724 1747 - // printf("calling updateTextureBytes\n"); 1748 1725 updateTextureBytes(platform.screen.texture, tic->product.screen, TIC80_FULLWIDTH, TIC80_FULLHEIGHT); 1749 - // printf("updateTextureBytes done\n"); 1750 1726 1751 1727 SDL_Rect rect; 1752 1728 calcTextureRect(&rect); ··· 1809 1785 else 1810 1786 renderKeyboard(); 1811 1787 #endif 1812 - // printf("calling renderPresent\n"); 1813 1788 renderPresent(platform.screen.renderer); 1814 - // printf("renderPresent done\n"); 1815 1789 1816 - // printf("end of gpuTick\n"); 1817 1790 platform.keyboard.text = '\0'; 1818 1791 } 1819 1792