Also your code doesn't quite do what you think it does. The whole string is being stored in a single word. You could take out vector and out loop completely and just use temp. It'd be exactly the same.
The operating system is limiting the key repeat rate. You can change it in the control panel in keyboard settings I believe. If the fastest a computer could flush out characters is the key repeat rate then there is no way that video games today could reach 60fps. Compare flushing a string to the console to rendering thousands of polygons, simulating physics, streaming content, etc every ~1/60th of a second.
Also your code doesn't quite do what you think it does. The whole string is being stored in a single word. You could take out vector and out loop completely and just use temp. It'd be exactly the same.
thanatos454 11 months ago
The operating system is limiting the key repeat rate. You can change it in the control panel in keyboard settings I believe. If the fastest a computer could flush out characters is the key repeat rate then there is no way that video games today could reach 60fps. Compare flushing a string to the console to rendering thousands of polygons, simulating physics, streaming content, etc every ~1/60th of a second.
thanatos454 11 months ago