Talk:SmileBASIC (Petit Computer 3)/@comment-15296152-20141204072656/@comment-14513004-20141205044508

Full size 512x512 GSAVE takes about 3 to 4 frames to copy image into 1D array. (array is auto-resized as GSAVE needs). resized array becomes [262144] elements.

512x512 GLOAD takes about 3 to 4 frames to paste.

SAVE can save whole array as file in DAT format. [262144] elements SAVE takes about 200+ frames (can't check accurate time because confirm-menu pops up when saving). The size of DAT file is 2097180(bytes)

LOADing this DAT file into array takes about 30 frames.

PTC3 GPSET became faster than PTC2. Filling whole screen 400x240 takes... about 91 frames when using RGB(255,0,0) as color. about 64 frames when using the value &HFF0000 as color. (it takes about 131 frames to fill 256x192 in PTC2)

About logical and physical format in GSAVE... When GSAVE stores pixel color into array, it uses one of these formats. logical and physical.

When color conversion flag is 0, it uses physical color. Its bit form is AAAA AAAA RRRR R000 GGGG G000 BBBB B000 For example, yellow pixel RGB(255,255,  0) is 4294506496 which is FFF8F800 in hex form.

When color conversion flag is 1, it uses logical color. Its bit form is RRRR RGGG GGBB BBBA For example, yellow RGB(255,255,  0) is 65473 which is FFC1 in hex form.

Even though logical color format uses smaller value, both logical and physical produces same size of array (1 element per pixel). and almost same speed in pasting.