Just try Input.trigger?(Input::key) in a event, and place some actions inside.
It's like it lags either before or after for like 4-5 frimes.
In XP/VX it worked every time so that's why I'm asking because there's gotta be a way to fix this..
This can seriously be in issue in games if they have to press a button 3-4 times before it works..
Problem lies within the Game_Interpreter
RGSS3 is awesome, but the previous makers had a better interpreter.. which I plan to fix
This post has been edited by Rukiri: Jan 15 2012, 01:11 PM
__________________________
Xeilsoft - Follow your dreams to the very end..
Kits that I'm working on. [Unity3D 4.0] LTTP/Minish Cap - I don't have time for custom gfx like what the pze folks are doing but I will try and work on some enhanced LTTP graphics.
Main PC Core i7 3820 overclocked @ 4.8GHZ Galaxy: Nvidia Geforce GTX 680 GDDR5 2GB Asrock X79 Extreme9 w' creative sound 64GB corsair platinum @ 1600MHZ Muchkin 128GB SSD(boot), OZKIN 2TB SSD, Western Digital GREEN 1TB HDD. Rosewill Lightning 1000W PSU OS: Funtoo Linux, Windows 8 (Virtual Machine)
iMac (March 2013) 3.4GHz Quad-core Intel Core i7, Turbo Boost up to 3.9GHz 16GB 1600MHz DDR3 SDRAM - 2X8GB 1TB Serial ATA Drive @ 7200 rpm NVIDIA GeForce GTX 680MX 2GB GDDR5
Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed
Eeeeh, RGSS3 Interpreter is way more efficient than RGSS2, mainly thanks to the Fiber classes. I don't know what you did, but the problem lies with you, not with the interpreter.
__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.
Input's pretty lagy with script with events even on a new project.
__________________________
Xeilsoft - Follow your dreams to the very end..
Kits that I'm working on. [Unity3D 4.0] LTTP/Minish Cap - I don't have time for custom gfx like what the pze folks are doing but I will try and work on some enhanced LTTP graphics.
Main PC Core i7 3820 overclocked @ 4.8GHZ Galaxy: Nvidia Geforce GTX 680 GDDR5 2GB Asrock X79 Extreme9 w' creative sound 64GB corsair platinum @ 1600MHZ Muchkin 128GB SSD(boot), OZKIN 2TB SSD, Western Digital GREEN 1TB HDD. Rosewill Lightning 1000W PSU OS: Funtoo Linux, Windows 8 (Virtual Machine)
iMac (March 2013) 3.4GHz Quad-core Intel Core i7, Turbo Boost up to 3.9GHz 16GB 1600MHz DDR3 SDRAM - 2X8GB 1TB Serial ATA Drive @ 7200 rpm NVIDIA GeForce GTX 680MX 2GB GDDR5
It's just weird considering the same event in xp plays a se whenever I use Input.trigger? and hit A, ace takes at least 3 strikes before it plays which is why I'm calling it lag.
Input.update sadly doesn't fix the issue.
It seems to only lag when being used in events, I still can't figure out why as the previous 2 versions worked every single time.. Works perfectly in scripts.
This post has been edited by Rukiri: Jan 15 2012, 02:43 PM
__________________________
Xeilsoft - Follow your dreams to the very end..
Kits that I'm working on. [Unity3D 4.0] LTTP/Minish Cap - I don't have time for custom gfx like what the pze folks are doing but I will try and work on some enhanced LTTP graphics.
Main PC Core i7 3820 overclocked @ 4.8GHZ Galaxy: Nvidia Geforce GTX 680 GDDR5 2GB Asrock X79 Extreme9 w' creative sound 64GB corsair platinum @ 1600MHZ Muchkin 128GB SSD(boot), OZKIN 2TB SSD, Western Digital GREEN 1TB HDD. Rosewill Lightning 1000W PSU OS: Funtoo Linux, Windows 8 (Virtual Machine)
iMac (March 2013) 3.4GHz Quad-core Intel Core i7, Turbo Boost up to 3.9GHz 16GB 1600MHz DDR3 SDRAM - 2X8GB 1TB Serial ATA Drive @ 7200 rpm NVIDIA GeForce GTX 680MX 2GB GDDR5
Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed
This is hard to pinpoint without knowing exactly what you did. What kind of event trigger are you using? Is it a parallel process, in a common event or a map event?
__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.
Map event, parallel process does_not_work.png ( 84.01K )
Number of downloads: 26
__________________________
Xeilsoft - Follow your dreams to the very end..
Kits that I'm working on. [Unity3D 4.0] LTTP/Minish Cap - I don't have time for custom gfx like what the pze folks are doing but I will try and work on some enhanced LTTP graphics.
Main PC Core i7 3820 overclocked @ 4.8GHZ Galaxy: Nvidia Geforce GTX 680 GDDR5 2GB Asrock X79 Extreme9 w' creative sound 64GB corsair platinum @ 1600MHZ Muchkin 128GB SSD(boot), OZKIN 2TB SSD, Western Digital GREEN 1TB HDD. Rosewill Lightning 1000W PSU OS: Funtoo Linux, Windows 8 (Virtual Machine)
iMac (March 2013) 3.4GHz Quad-core Intel Core i7, Turbo Boost up to 3.9GHz 16GB 1600MHz DDR3 SDRAM - 2X8GB 1TB Serial ATA Drive @ 7200 rpm NVIDIA GeForce GTX 680MX 2GB GDDR5
Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed
Parallel events are updated in last. Not only that, but you also have a condition, which delays the whole thing because the button in not necessarily pressed when the update is called. Yeah, rapidfire will not go very well in that case. Should be ok for occasional input check, but not much else.
Unfortunately, this is a drawback of more efficient eventing performance-wise, so there isn't much to do about it. You could use press? instead of trigger? in conjunction with other conditions for instance.
The cause isn't the interpreter by itself, but more the way parallel events are handled, which ironically removes the lag related to having lots of parallel events with numerous commands.
__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.
I guess parallel events are handled differently than XP/VX as it worked perfectly with them.
I did fix the issue by just replicating what .trigger? did.
__________________________
Xeilsoft - Follow your dreams to the very end..
Kits that I'm working on. [Unity3D 4.0] LTTP/Minish Cap - I don't have time for custom gfx like what the pze folks are doing but I will try and work on some enhanced LTTP graphics.
Main PC Core i7 3820 overclocked @ 4.8GHZ Galaxy: Nvidia Geforce GTX 680 GDDR5 2GB Asrock X79 Extreme9 w' creative sound 64GB corsair platinum @ 1600MHZ Muchkin 128GB SSD(boot), OZKIN 2TB SSD, Western Digital GREEN 1TB HDD. Rosewill Lightning 1000W PSU OS: Funtoo Linux, Windows 8 (Virtual Machine)
iMac (March 2013) 3.4GHz Quad-core Intel Core i7, Turbo Boost up to 3.9GHz 16GB 1600MHz DDR3 SDRAM - 2X8GB 1TB Serial ATA Drive @ 7200 rpm NVIDIA GeForce GTX 680MX 2GB GDDR5
Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed
They're handed almost the same way, simply the update order is slightly different and the interpreter yields before being re-called. This eliminates a lot of lag for large event pages and maps with lots of different events, but you have a chance of Input.update being called between the time you press the key and the parallel process event kicks in to check the condition, therefore canceling the action. This isn't the case for autorun events however.
Of course, any complex system requiring precise key timing shouldn't be handled by events to begin with.
__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.