Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 914 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: media_play on a Panel lags like hell [Re: Pappenheimer] #246573
01/15/09 18:08
01/15/09 18:08
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
the problem is i need media_play for playing my movies on a panel and even without playing any sounds i have lag , just because of the movies.

Re: media_play on a Panel lags like hell [Re: Shinobi] #246575
01/15/09 18:23
01/15/09 18:23
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
I know - and I think that you won't get rid of the problem, because it is a problem of the acknex function and how it works. But, its just my opinion.
Although, I've heard from someone that he used videos for facial expressions - but I have no idea whether he had problems with that or not. But, I guess that in his case a lag was less visible, because it was in a sort of cut scene.

The quote from the manual speaks about media files in general, it is not specific to sound files.

I don't want to bother though, if it is a problem of codecs, let us know which codec works best. Good luck! smile

Re: media_play on a Panel lags like hell [Re: Pappenheimer] #246577
01/15/09 18:31
01/15/09 18:31
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Thanks everyone for trying to help , no one bother here , you just try to help.
Its my first time of using media_play /loop /stop and it looks like its a lag problem if someone use it alot. I never had problems using snd_play or ent_playsound so far.

If i can solve the problem with other codecs i let you know.
But i am not sure anymore:(

Re: media_play on a Panel lags like hell [Re: Shinobi] #246592
01/15/09 19:51
01/15/09 19:51
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
maby you can upload a movie sample zo we can test on how to reduce the lagg


"empty"
Re: media_play on a Panel lags like hell [Re: flits] #246622
01/15/09 21:37
01/15/09 21:37
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Ingame movie or one of the movie files ?

Re: media_play on a Panel lags like hell [Re: Shinobi] #246676
01/16/09 12:47
01/16/09 12:47
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
just a movie file thats laggs


"empty"
Re: media_play on a Panel lags like hell [Re: flits] #246680
01/16/09 13:27
01/16/09 13:27
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
They only lag in Gamestudio with media_play , not in Windows.

here is a movie from the Game.

Last edited by Shinobi; 01/16/09 13:27.
Re: media_play on a Panel lags like hell [Re: Shinobi] #246816
01/17/09 12:51
01/17/09 12:51
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
No other codecs works here frown

The problem is that the file dont stay in memory , everytime the video starts it will read it new to memory. Models or gfx stay in memory once they started but the video files not ..... why? how can i change that ?

Re: media_play on a Panel lags like hell [Re: Shinobi] #246855
01/17/09 16:14
01/17/09 16:14
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
yah you are right the file cant be loaded into the memory i tried some times

it doesnt work but the only way i thouth this would be possible is this
Code:
long size;
	void* pmv = file_load(mpanel,NULL,&size);
	add_buffer(mpanel,pmv,size);
	debuga[1] = pmv;
	
	wait(-2);
	
	timer();
	movie_handle=media_play(file1,NULL,0);
	debuga[0] = timer();


Last edited by flits; 01/17/09 20:45.

"empty"
Re: media_play on a Panel lags like hell [Re: flits] #246871
01/17/09 17:52
01/17/09 17:52
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Have you tested the code ?
I dont think that this works (not tested yet)

Last edited by Shinobi; 01/17/09 17:52.
Page 2 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1