≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
How to do this?
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b][/b] wrote: Yes, a ""Every few seconds, do something" loop will run a bit slower than a dedicated "when a key pressed" handler, but really, really insignifcant slower. Try it out, it doesn't have an impact on the framerate at all. You could have a few hundreds of these, and the framerate wouldn't suffer. And you only need one. Inside you could call multiple event handlers, if you prefer that, for speed. It's because the engine knows that the key handler code only needs to be invoked when a key is pressed, while the "do something" handler is run every frame. In the first one, the "checking for key" is implemented then in C++, while in the second version, the checking is done by you, in JavaScript, which is a bit slower.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact