DisplayTransparentSprite is taking too long to process
Posted: Tue Mar 17, 2020 9:01 pm
Hi!
In this particular computer, here are the specifications:
Operating System
Windows 10 Pro 64-bit
CPU
Intel Core i5 3330 @ 3.00GHz
Ivy Bridge 22nm Technology
RAM
8,00GB Dual-Channel DDR3 @ 798MHz (11-11-11-28)
Motherboard
PEGATRON CORPORATION IPMH61P1 (SOCKET 1155)
Graphics
DELL E1911 (1440x900@64Hz)
Intel Adaptador de Vídeo Básico da Microsoft (Unknown)
PureBasic 5.71 LTS (Windows - x64)
I'm drawing a map that is 20x15 tiles, each tile is 16x16 pixels. The tiles are zoomed by a factor of 2 (making them 32x32 pixels), and the screen resolution is 640x480 pixels. Drawing the 300 tiles in the screen is taking on average 10 ms, which is making the movement sluggish. Here is a link with the source code for download:
https://drive.google.com/open?id=1B5u6M ... LxLOmJL7nr
You can move the sprite with the arrow keys. Why would DisplayTransparentSprite take so long to draw the tiles?
Thanks.
In this particular computer, here are the specifications:
Operating System
Windows 10 Pro 64-bit
CPU
Intel Core i5 3330 @ 3.00GHz
Ivy Bridge 22nm Technology
RAM
8,00GB Dual-Channel DDR3 @ 798MHz (11-11-11-28)
Motherboard
PEGATRON CORPORATION IPMH61P1 (SOCKET 1155)
Graphics
DELL E1911 (1440x900@64Hz)
Intel Adaptador de Vídeo Básico da Microsoft (Unknown)
PureBasic 5.71 LTS (Windows - x64)
I'm drawing a map that is 20x15 tiles, each tile is 16x16 pixels. The tiles are zoomed by a factor of 2 (making them 32x32 pixels), and the screen resolution is 640x480 pixels. Drawing the 300 tiles in the screen is taking on average 10 ms, which is making the movement sluggish. Here is a link with the source code for download:
https://drive.google.com/open?id=1B5u6M ... LxLOmJL7nr
You can move the sprite with the arrow keys. Why would DisplayTransparentSprite take so long to draw the tiles?
Thanks.