1

Topic: Optimization of a visual short story

I do a visual short story (the interactive book, a picture + the text below + music), at me is some questions
1) I store all (the text file with the scenario, a picture and music) in resources, whether it is correct? Or at big problems can be an amount of the data? How it is better to do? To load all from resources on runtime or to store on the screw?
2) As it is possible to accelerate picture leadingout in TImage, and that is a little , well absolutely, I am afraid that will be worse further.
3) Because of  AlphaControls (it is necessary  one on some components + components AlphaControls) and at me application weighs on 16 Mb more (one thousand more files.dcu with an executed file forms, well , not ,  10 pieces somewhere), it is not assured that all from them are used by application, and so, it is possible to delete somehow unnecessary  which I do not use from AlphaControls, and that I of couples am assured that I use a maximum of 1 percent, from that that sticks to my game (

2

Re: Optimization of a visual short story

Dress a chain armor and prepare for fight. here people will be tightened and drive you into the corner questions and councils <<What for you do it for a table platform? Do for mobile platforms - audience there totally in times more!>>.

3

Re: Optimization of a visual short story

google search PicShow

4

Re: Optimization of a visual short story

WarlikeLaux;
A little did not understand what here to optimize
Files are better for storing in separate files. With resources there can be problems with  operative storage. That is  storage which on idea can and not .
16 it is not terrible. Mobile applications to 100 occupy also norms. Especially at you the desktop and media of files is a lot of.
Concerning AlphaControls I will prompt nothing
TImage it is possible to accelerate, but I am not assured that you need to do it. What you with it do?

5

Re: Optimization of a visual short story

SOFT FOR YOU, I deduce many pictures by turns (the interactive book),  it is a little, not so smoothly all is shorter, DoubleBuffered is included, both with it, and without it, the difference is not especially visible, advised Graphics32, but I cannot install it in Rad Studio 10.2, at one forum advised to load following pictures in storage (MMS), but I of couples not especially understand, more precisely sense I understand, but what exactly it is necessary to write - was not present, not especially it is a lot of  about it on the Internet.

6

Re: Optimization of a visual short story

WarlikeLaux wrote:

I deduce many pictures by turns (the interactive book)

Throw out TImage, draw immediately TBitmap on TPaintBox. If at you a picture in JPEG -
In advance transform in TBitmap.

7

Re: Optimization of a visual short story

Dimitry Sibiryakov, it  faster?

8

Re: Optimization of a visual short story

WarlikeLaux wrote:

it  faster?

For fast change of pictures - yes. Even faster - only DirectX.

9

Re: Optimization of a visual short story

Dimitry Sibiryakov, DirectX it DirectDraw or it like something become outdated very much and  in another way can be deduced? And through DirectX it is difficult to deduce pictures?

10

Re: Optimization of a visual short story

WarlikeLaux wrote:

DirectX it DirectDraw or it like something become outdated very much and  in another way can be deduced?

For 2D anything is not present is better. All "in another way" - only for 3D.
But you at first try TPaintBox. Suddenly you will master?.

11

Re: Optimization of a visual short story

Couples at me a problem with PaintBox, does not deduce normally though in TImage the same code deduces all normally, I will transform jpg in bmp through assign with quality instructions before, on TImage all is ideal, and PaintBox the first picture does not deduce, the second deduces, but produces an error (access violation) and  even more than TImage.

12

Re: Optimization of a visual short story

Dimitry Sibiryakov wrote:

it is passed...
For 2D anything is not present is better. All "in another way" - only for 3D.
But you at first try TPaintBox. Suddenly you will master?.

About 2D you mean DirectDraw?

13

Re: Optimization of a visual short story

WarlikeLaux wrote:

one thousand more files.dcu with an executed file forms, well , not ,  10 pieces somewhere

Well you in course, what.dcu are necessary only for compilation - they are not so necessary to ready application, yes?.

14

Re: Optimization of a visual short story

When there will be a code? Can on the second page?

15

Re: Optimization of a visual short story

alekcvp wrote:

it is passed...
Well you in course, what.dcu are necessary only for compilation - they are not so necessary to ready application, yes?.

Yes, but all of them equally all are compiled and gather in the project, is not assured that libraries differentiate somehow the components on necessary and are not present.

16

Re: Optimization of a visual short story

DimaBr wrote:

When there will be a code? Can on the second page?

What for? I like did not ask the code to correct, and simply took an interest about specific questions as it is better to make storage of files of the program and through what it is better to deduce pictures.

17

Re: Optimization of a visual short story

But you speak that PainBox falls

18

Re: Optimization of a visual short story

DimaBr wrote:

But you speak that PainBox falls

, it is guilty, I already and forgot about it, I already decided to deduce pictures through library Graphics32, faster much more it seems to me than PaintBox, on extreme now there are no problems, meanwhile.

19

Re: Optimization of a visual short story

WarlikeLaux wrote:

Yes, but all of them equally all are compiled and gather in the project, is not assured that libraries differentiate somehow the components on necessary and are not present.

Smart Linking (tm). Especially if RTTI to disconnect.

20

Re: Optimization of a visual short story

WarlikeLaux wrote:

it is passed...
, it is guilty, I already and forgot about it, I already decided to deduce pictures through library Graphics32, faster much more it seems to me than PaintBox, on extreme now there are no problems, meanwhile.

I suspect that matter is not in TImage, and it is exact not in TPaintBox

21

Re: Optimization of a visual short story

Much read a topic.
On the middle even tear started up from sympathy.