Poor response to arrow keys

I just tried the demo web game from the pre-order page, and I found that the responsiveness to arrow keys was very poor -- after pressing an arrow key, there's a very noticeable delay before the character moves.

This is on Windows 8 and Chrome. (It's a development machine, so it has a good amount of CPU, RAM, etc.).

1) Am I the only one to notice / experience this?

2) Is this a known issue that will be fixed?

Frankly, if it's not just me, and the performance is this poor for a fairly small/empty map, I'm not sure that any sizeable map would be playable.
I had no such issues, and haven't heard of it from anyone else. Try using Firefox temporarily, or clearing your cache, perhaps?
How about your internet speed?
This would definitely be because it's in a browser. There's no such delay when playing on my PC.


But yes, if you're planning to make browser based games, this, and the time to load resources, is definitely something you're going to encounter.
@Adiktuzmiko my internet speed is pretty fast. I did notice a slight delay when loading new assets (eg. faces of characters). Since MV uses Pixi JS, I'm hoping there will be some sort of preloader built-in (maybe in a later version).

@Shaz the performance drop is pretty noticeable. Is this a "known issue and we'll fix it", or is it "a known issue and we won't fix it"?
I experience 15 FPS average on my chrome, so everything's slow for me.


Everything is smooth on firefox.


However, others have mentioned they have no problem with chrome, so it must be how I have chrome set up.
How much ram does your PC have? Also do you run stupid stuff like iTunes on your PC(that eats up ram more then anything)?
Internet speeds have nothing to do with how the engine is written or runs. If you have a slow internet, or are on a website with heavy traffic, it is going to affect communication between you and the server.


It is not something that can be "fixed" by any engine changes. The "fix" is to improve your internet connectivity. Or whatever else on your end is causing it to be slow.
I wouldn't really bet that the game is optimized though as it's only to show that you can release browser games. And it is also said that it is asynchronous so the loading of items during run time might also be affecting the speed of the responses or something
I have lots of RAM. This is a dev machine -- it can handle some pretty serious games. Which is why I'm surprised.

This is going to be really important. If HTML5/web is your main project output, you may end up releasing a game and getting tons of complaints about performance. You can't exactly ask your users to do things like:

- Upgrade their RAM, CPU, etc. (just for one game)

- Close/shutdown all their other apps (especially shared computers)

- Upgrade their internet connectivity, etc.

But these problems aren't unique to MV -- all HTML5 games should suffer through them. That's why they all have preloaders -- so your game experience isn't affected negatively by poor internet speeds.

If I can see slow performance on my PC, that worries me. I'm pretty sure lots of other users will, too. And that makes me very hesitant about developing and releasing a game if the main release mechanism is HTML5/web.

Hopefully, this (no preloaders, slow response to key presses, synchronous mode/loading, optimization, etc.) is something that will improve. Personally, I'm interested in desktop primarily, and web second. Right now, it's not really usable in the state that it's in.
This is only a concern if you plan to publish to html, otherwise it's irrelevant.


Personally, I hadn't intended to anyway, and based on the number of people who grabbed the scripts and resources from any demos provided, I'm not in a hurry to make plans to, either.
Personally, I hadn't intended to anyway, and based on the number of people who grabbed the scripts and resources from any demos provided, I'm not in a hurry to make plans to, either.
Sorry if I'm misunderstanding you, but do you mean to say that people were easily able to steal your scripts and resources from your browser game?

===

In response to the topic at large, I was in an interesting scenario to test this - I was experiencing some memory leaks (probably from lots of active Firefox sessions) and tried the game - very poor apparent responses and FPS from the browser demo.

However, then I closed everything, rebooted my computer, and tried again, and it was smooth as silk.  Great FPS and good response times with arrows or mouse control.  Windows 7 & Firefox.

In short - it was likely other issues you were having that caused these problems for you.
Sorry if I'm misunderstanding you, but do you mean to say that people were easily able to steal your scripts and resources from your browser game?
See the number of ripped graphics already posted on this site, and the references to having looked at the script codes
See the number of ripped graphics already posted on this site, and the references to having looked at the script codes
I'll take your word for it (since I haven't seen a single thing about this but I haven't been as involved in this subforum as you have).

So I guess my follow-up question would be, is there anything inherent about having the game run in a browser that makes it easier to rip these things (as opposed to distributing it as a standalone Windows exe)?

I was really hoping to publish some minigames and such to the web, but if it's going to be really easy for people to steal my custom work and immitate my game, then maybe I should reconsider.
So I guess my follow-up question would be, is there anything inherent about having the game run in a browser that makes it easier to rip these things (as opposed to distributing it as a standalone Windows exe)?
You cannot encode browser data, it has to be transmitted in the clear.

That would not be the case for standalone games however.

(or better said, all ways to encode browser data require a server with a secure connection and server-based encryption and/or a client handling the decoding)
You cannot encode browser data, it has to be transmitted in the clear.

That would not be the case for standalone games however.

(or better said, all ways to encode browser data require a server with a secure connection and server-based encryption and/or a client handling the decoding)
Thank you!  This is starting to make sense to me.

If I understand correctly, you are saying that players will be able to read all of the scripts in my game file (even the ones that aren't being used at a given moment) just as easily as they could read something like, say, a command to display text on a webpage's picture if the picture fails to load?

Would there be any practical way to run my MV game with encryption, from a server, or (if you're allowed to answer this prerelease) is this impossible because the way MV exports would require all of the information to be sent "in the clear" when the page loads?

Also, are any of the same weaknesses inherent in Flash-based games or Unity exports to browser?
(if you're allowed to answer this prerelease)
I don't have access to RMMV, all my answers come from background knowledge about how the internet works
If I understand correctly, you are saying that players will be able to read all of the scripts in my game file (even the ones that aren't being used at a given moment) just as easily as they could read something like, say, a command to display text on a webpage's picture if the picture fails to load?
 
Basically yes, however

Would there be any practical way to run my MV game with encryption <-in Browser->
No encryption that I know of, but you can always try a process called minification - If I understand correctly the engine even employs a basic variant of this.
That process is something that removes all comments, all blank spaces and similiar parts from the script.


This has the first effect of making the scripts smaller (faster to load and process).


Additionally it makes them basically unreadable for anyone but a real programmer.


A user that has problems understanding and configuring Ace-Scripts would have no chance to read that resulting code - try it yourself


However, a programmer can read that by entering new line breaks where he knows a command ends - but that is more work.


Art can more easily be copied out, but getting scripts out is more work if they had been minified like that, and no casual gamer or developer will bother with that.
Thanks so much for that explanation, Andar.

It does sound pretty dicey to risk posting games to browsers, and probably a potential nightmare waiting to happen for any artists that are going to be making resource packs!
I have Firefox and i cant Play the MV Testgame in my Browser, this Error shows up:

Error:

Failed to load: data/Map004.json

Edits:

Now it seems to work after several restarts

Edit2: No keydelay in firefox, but the music didnt started from beginning and the textboxes text takes some time to apear.

Edit3: Was on that Mission with the white hair chick in demo game , after eating that map load error again.

That error somehow sometimes apear. Could be frustrating for Players to have game crash cause of that.

i know i have sometimes these loading errors in my bvrowser , but i just updated it so iam not sure if its on my end or the other end.
I have Firefox and i cant Play the MV Testgame in my Browser, this Error shows up:

Error:

Failed to load: data/Map004.json

Edits:

Now it seems to work after several restarts

Edit2: No keydelay in firefox, but the music didnt started from beginning and the textboxes text takes some time to apear.

Edit3: Was on that Mission with the white hair chick in demo game , after eating that map load error again.

That error somehow sometimes apear. Could be frustrating for Players to have game crash cause of that.

i know i have sometimes these loading errors in my bvrowser , but i just updated it so iam not sure if its on my end or the other end.

It's definitely your end. It sounds like your internet connection keeps getting interrupted while trying to download several files, or that it's just really slow in general.

Original thread: https://forums.rpgmakerweb.com/threads/poor-response-to-arrow-keys.45739/