flat assembler
Message board for the users of flat assembler.

Index > Windows > 8k image player, animation

Author
Thread Post new topic Reply to topic
Fastestcodes



Joined: 13 Jun 2022
Posts: 75
Fastestcodes 13 Jun 2022, 07:32
Hi all!
Hi can we do this?
Open 32MB pic0.raw
Copy to memory m0
...
Open pic31.raw
Copy to memory m31
Label1
Show m0 on screen for 33ms
show m1...
show m31 on screen 33ms
jmp Label 1
end.

Animation on screen from memory. Thx.
Post 13 Jun 2022, 07:32
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20344
Location: In your JS exploiting you and your system
revolution 13 Jun 2022, 09:52
Step 1: Upload the data into the GPU memory.
Step 2: Select a new frame each 33ms

Are you sure the files are only 32MB?
8k * 4k * RGB = 96MB or RGBA = 128MB
Post 13 Jun 2022, 09:52
View user's profile Send private message Visit poster's website Reply with quote
Fastestcodes



Joined: 13 Jun 2022
Posts: 75
Fastestcodes 13 Jun 2022, 10:44
Yes. Grayscale pics.
Post 13 Jun 2022, 10:44
View user's profile Send private message Reply with quote
Fastestcodes



Joined: 13 Jun 2022
Posts: 75
Fastestcodes 13 Jun 2022, 10:47
I have no 1+GB Gpu mem. Acdsee and Irfanwiev are slow, only 2-4 pic/s from Imdisk ramdrive.
Post 13 Jun 2022, 10:47
View user's profile Send private message Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 13 Jun 2022, 15:56
Look at d2d interfaces, it's fast enough.
Post 13 Jun 2022, 15:56
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4043
Location: vpcmpistri
bitRAKE 13 Jun 2022, 15:57
StretchBlit can convert the grayscale to your native screen format, from your WM_PAINT message handler. You can force an update by invalidating the window at interval. (this would probably not be fast enough though)

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 13 Jun 2022, 15:57
View user's profile Send private message Visit poster's website Reply with quote
Fastestcodes



Joined: 13 Jun 2022
Posts: 75
Fastestcodes 14 Jun 2022, 16:31
Around 2s. Bitblt 1,5s. I have no Fasm example prog for picture wiev, Masm32 only(jpg,png).
Post 14 Jun 2022, 16:31
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 960
Location: Russia
macomics 14 Jun 2022, 18:17
So you would ask for help with translating them to fasm.
Post 14 Jun 2022, 18:17
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4043
Location: vpcmpistri
bitRAKE 15 Jun 2022, 04:38
You could start with something similar, and adapt it to your needs? There are probably other examples on the board. Or, perhaps the directX example in the fasm distribution?

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 15 Jun 2022, 04:38
View user's profile Send private message Visit poster's website Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 15 Jun 2022, 06:10
Quote:

the directX example in the fasm distribution

Do you mean DirectDraw? It's too old and doesn't support hardware acceleration.

Direct2D is the best choice. You can start from here: https://board.flatassembler.net/topic.php?t=21951
Post 15 Jun 2022, 06:10
View user's profile Send private message Visit poster's website Reply with quote
Fastestcodes



Joined: 13 Jun 2022
Posts: 75
Fastestcodes 15 Jun 2022, 16:18
Acdsee 1-3 pic/s. 3 pics are very fast in slideshow, play from memory. 4+ pics are slow. Faster than Bitblt.
Post 15 Jun 2022, 16:18
View user's profile Send private message Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 15 Jun 2022, 17:42
Just tried upscale my projects window up to 8K. It eats a lot of ram and quite heavy for my old PC. Animation about 4-6 frames per second. But I use a bunch of layers on it and ram is busy it have to swap.


Description:
Filesize: 992.9 KB
Viewed: 5230 Time(s)

Untitled.png


Post 15 Jun 2022, 17:42
View user's profile Send private message Visit poster's website Reply with quote
I



Joined: 19 May 2022
Posts: 58
I 17 Jun 2022, 00:10
Overclick wrote:

Do you mean DirectDraw? It's too old and doesn't support hardware acceleration.

Direct2D is the best choice. You can start from here: https://board.flatassembler.net/topic.php?t=21951


IINM the OP is using XP and XP doesn't support Direct2D AFAIK.
Post 17 Jun 2022, 00:10
View user's profile Send private message Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 17 Jun 2022, 09:49
XP for 8K? Strange decision. Does XP have any video drivers to support that size? Multiscreen only I guess.
Post 17 Jun 2022, 09:49
View user's profile Send private message Visit poster's website Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 2507
Furs 17 Jun 2022, 14:07
I guess he could use D3D9 then. But DirectDraw should be hardware accelerated on XP, no idea if it supports 8k though.
Post 17 Jun 2022, 14:07
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.