Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
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
3 registered members (RealSerious3D, rvl, tomaslolo), 685 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
media_play on a Panel lags like hell #246510
01/15/09 13:40
01/15/09 13:40
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Hi , its the first time i am using videos on a Panel with "media_play". Every time if a movie starts , it lags very hard and the Player Model ends up on different positions without moving smoothly. The videos are really small sized and i cant figure out why its lagging so hard.

Do anyone know a solution ?

Re: media_play on a Panel lags like hell [Re: Shinobi] #246524
01/15/09 14:14
01/15/09 14:14
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
öhöm.. ohne Code könn wir dir ned helfen..
Kannst den nachposten?


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: media_play on a Panel lags like hell [Re: Espér] #246549
01/15/09 15:51
01/15/09 15: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
Der Code ist halt ganz simpel , darum habe ich ihn nicht gepostet.

Code:
movie_handle=media_play(start_video,movie_bmp,1000);


Re: media_play on a Panel lags like hell [Re: Shinobi] #246552
01/15/09 16:01
01/15/09 16:01
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
XD.. es geht eigentlich um den ganzen code..
vielleicht hast du iwo was drin, dass die leistung zieht.. einen wertebereich nicht begrenzt oder ähnliches

achja.. Ps.: Die Laustärke reicht von 0..100
nicht bis 1000


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: media_play on a Panel lags like hell [Re: Espér] #246555
01/15/09 16:28
01/15/09 16:28
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Die 1000 war nur ein tipfehler , ist ja nicht mein erstes Spiel an das ich arbeite wink

movie_playing dient nur dazu um zu ermitteln welches der Videos gespielt werden soll.
Ich glaube nicht das mein lag problem an der Art des Codes liegt ... denke mal eher das es eventuell an den files selber liegt. werde mal testen und die videos in einem anderen format codieren.

Code:
   if(movie_playing==1)
   {
      movie_handle=media_play(start_video,movie_bmp,100);
   }
   if(movie_playing==2)
   {
      movie_handle=media_play(video_2,movie_bmp,100);
   }
   if(movie_playing==3)
   {
      movie_handle=media_play(video_3,movie_bmp,100);
   }
   if(movie_playing==4)
   {
      movie_handle=media_play(video_4,movie_bmp,100);
   }


Last edited by Shinobi; 01/15/09 16:30.
Re: media_play on a Panel lags like hell [Re: Shinobi] #246564
01/15/09 17:29
01/15/09 17:29
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
uhm we need stil more code but i do you use time_step in your movement of your player
and are your videos loaded before you start them or not

i got that problem to when i load sounds(whitout movie)


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

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
yes i am using time_step , but the videos load on the fly.
I would write a code to play all movies for a frame , just for loading them in memory , but the problem is that the same video that was playing before , ends up in lag if its playing again some time later. I am sure its the video codec i will try another way to compress my videos. Currently i used the "windows media Video9 (wmv3)" codec to compress the videos. If i am back home i will try other codecs ...

Re: media_play on a Panel lags like hell [Re: flits] #246568
01/15/09 17:56
01/15/09 17:56
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
From the manual:

"Multimedia files have to be loaded from virtual memory before playing, so there can be a few milliseconds delay at the beginning or every loop repetition, depending on the hardware and the filter software. For avoiding this audible delay on audio files, use snd_loop for looping music in .wav or .ogg format."

In short:
I never used videos, but media_play with sounds lacked always very much.

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

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
its not an audio problem , the videos do not have audio they only have video.
for the audio i am using ogg files (makes smaller file sizes). Every Video has its own ogg file. I tested it also without starting the sound files , same problem. So i am sure its a codec problem.

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

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
You didn't get my point:

IMO it is a problem of media_play, not of sound file or video file.
snd_play doesn't have such problems, but it is only for sound files.

Page 1 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