Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Lag caused by Audio, (BGM and ME)
Decedent
post Jun 29 2012, 01:28 PM
Post #1


Level 6
Group Icon

Group: Member
Posts: 86
Type: Developer
RM Skill: Advanced




It may fix itself after creating the game file, but when testing in game, if I have silence and have an event start playing BGM or ME (the last one is a bigger problem) part way through a scene, the game lags for a second or two before resuming. Is this normal?


__________________________
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Jun 30 2012, 05:37 AM
Post #2


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 904
Type: Scripter
RM Skill: Skilled
Rev Points: 120




Are you using .mid files or .ogg files?

.ogg files can cause a massive amount of delay in RMXP. If they're too big, since the engine has to fully load them before playing them (this is the main lag cause).

In newset versions (RMVX, RMVXA) Enterbrain fixed this odd problem, but RMXP suffers from this...

As of today, I've never heard of MIDI files delaying a RMXP game.
If so, I have barely no idea...

Jens

This post has been edited by Jens of Zanicuud: Jun 30 2012, 05:38 AM


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   
Nub Cake
post Jun 30 2012, 11:21 AM
Post #3


Level 7
Group Icon

Group: Revolutionary
Posts: 102
Type: Event Designer
RM Skill: Skilled




I'm not sure if it's of any help, and it will just add a bit more work to the game, but a Anti-lag script might be able to help, but im not sure.

Also, if you use .ogg files, as i did, i recommend to convert them to .mp3 as the .ogg files doesn't get "locked" for the install file, so when the players install the game they will be able to get the music files. This is due to what Jens mentioned, that RMXP wasn't made to read .ogg files. It's just a tip if you use it and don't want players to access it tongue.gif


__________________________


[Show/Hide] To make my signature smaller

[Show/Hide] Koroshite Gakuen - Paused - lack of inspiration


Koroshite Gakuen means Killing in the School, and my current project is finally gonna be the first game i complete.

As for plans, i have though of the chat options, full screen, menu and might a diary, and a phone system.

The game is based on a girl, still unnamed, and it's a day at the high school where they play mafia.

Mafia is a game where a few is selected to be mafia, and a a couple selected for detectives. The rest is innocent, and the mafias touch them and tells them their dead, and they eventually lie down, sit down or go to a certain room. Now, the detective can then go to them, and the dead guy will tell them one thing that can describe the murders appearance, but no names, and no one else knows what that guy told the detective. Either the mafia kills all, or the detective catches the mafias, and the game ends.

Now, the plan is that there happens an actual murder at the school, there isn't cops in the town, and there isn't enough resources to send more than one police officer, which can't figure out much. So as the police officer doesn't do too much, you decide to take it up yourself, track down the murder.

I don't feel like telling more as it kind of spoils it, but i can say that I'm still at the mapping, and i try my best to make them look as good as possible, as I'm a horrible mapper.

Decent art artist?

I could really use some help for some of the graphics for character faces, and eventually a few character pictures c:



I love to write stories, if you're stuck on your games story, i might be able to help :)
Go to the top of the page
 
+Quote Post
   
Decedent
post Jun 30 2012, 01:48 PM
Post #4


Level 6
Group Icon

Group: Member
Posts: 86
Type: Developer
RM Skill: Advanced




Some .ogg files yes, but I've had the problem for a while with the provided ME files like Fan Fare which is a midi... It only seems to be the first time I hear the song after freshly opening and testing that it freezes up though. After that, if I repeat the event it's fine so I guess it is an initial loading problem.

I got that anti lag script and I'll have a play through later and see if the problem persists, it may just be because I'm having to close and reopen the testing game every 5 minutes to fix something, and having one long run through would present no problems. Just thought I'd ask in case it was a common issue.

Thanks for the help happy.gif


__________________________
Go to the top of the page
 
+Quote Post
   
Vexus
post Jul 1 2012, 12:35 AM
Post #5


Level 19
Group Icon

Group: Revolutionary
Posts: 396
Type: Mapper
RM Skill: Intermediate




I guess your operating system is windows 7 right? if yes that is a problem I think everyone has with rmxp me included.

Only solution is to convert them from midi to something else no other solution sadly I could find working.


__________________________
Current Project/s:
Go to the top of the page
 
+Quote Post
   
Night_Runner
post Jul 2 2012, 05:30 AM
Post #6


Level 50
Group Icon

Group: +Gold Member
Posts: 1,525
Type: Scripter
RM Skill: Undisclosed




@> Nub Cake:
In general, Anti-Lag scripts will stop the engine from updating the graphics of characters when they are not on the screen, and that's about it.
Don't get me wrong, when you have to load an insane amount of graphics which then need to be cropped to the calculated sizes and positions, and recoloured and affected by hue changes, ect. for characters that aren't even on the screen, it does take its toll on your computer. But I haven't seen an Anti-Lag script that will affect the Audio.
I've looked through the Anti-Lag script you linked, it's a standard "stop drawing graphics that aren't even on the screen" script.

@> Decedent:
As Vexus has mentioned, the lag is part of how RMXP handles .ogg audio files. I've seen scripts that override how to handle audio files, by using their supplied DLL files, which may be something to investigate. I haven't had much luck getting them to do anything for me, so I'll let you decide whether or not you want to pursue it.


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 01:18 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker