ddnet/src/game/client/components
bors[bot] 2be8dc69cb
Merge #4941
4941: Keep DDNet window responsive for loading tasks r=def- a=Jupeyy

This will keep the DDNet window responsive, especially when loading the client the first time this is important, so that SDL2 events aren't lost.

Menu's RenderLoading allows up to 60 frames per second, so calling it too often cannot really happen.

For reloading (skins&assets) / demo loading etc. it only swaps to the render screen after half a second passed. Even if this might not be the nicest, it's still better than just freezing the window.

I hope this addresses issues from #4936



## Checklist

- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2022-04-02 15:19:26 +00:00
..
background.cpp Move InitTilemapSkip to CLayers 2022-01-19 22:22:31 +01:00
background.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
binds.cpp Merge #4790 2022-03-12 11:31:48 +00:00
binds.h Binds: Reorder modifiers according to the convention 2022-02-07 01:54:12 +03:00
broadcast.cpp Remove components pointers 2021-07-12 12:14:02 +02:00
broadcast.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
camera.cpp Don't clamp "zoom" command, we already clamp in ChangeZoom 2022-01-26 12:54:19 +01:00
camera.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
chat.cpp Fix styles 2022-03-29 17:39:16 -03:00
chat.h Use std::size instead of sizeof(a) / sizeof(a[0]) 2022-03-30 18:55:04 +02:00
console.cpp Fix clang-format 2022-02-15 00:32:04 +01:00
console.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
controls.cpp Format member variable's name correctly 2022-03-24 19:30:26 +01:00
controls.h Format member variable's name correctly 2022-03-24 19:30:26 +01:00
countryflags.cpp Check pTexName for nullptr, fix wrongly height->width 2022-03-22 20:28:33 +01:00
countryflags.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
damageind.cpp Small graphic refactoring 2021-09-14 00:21:17 +02:00
damageind.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
debughud.cpp Use std::size instead of sizeof(a) / sizeof(a[0]) 2022-03-30 18:55:04 +02:00
debughud.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
effects.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
effects.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
emoticon.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
emoticon.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
flow.cpp Fix all Multiplication type alerts by CodeQL 2020-10-05 19:03:54 +02:00
flow.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
ghost.cpp fix color of ghost 2022-04-01 23:48:25 +02:00
ghost.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
hud.cpp Cleanup backend a bit for vulkan 2022-03-20 18:03:25 +01:00
hud.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
items.cpp Fixed some useless double promotion 2022-03-23 18:22:08 +01:00
items.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
killmessages.cpp Reset text color after kill messages are created 2021-10-29 00:11:21 +02:00
killmessages.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
mapimages.cpp Use std::size instead of sizeof(a) / sizeof(a[0]) 2022-03-30 18:55:04 +02:00
mapimages.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
maplayers.cpp Merge #4852 2022-03-25 18:29:02 +00:00
maplayers.h Format member variable's name correctly 2022-03-24 19:30:26 +01:00
mapsounds.cpp Some char array naming convention 2021-09-13 12:21:56 +02:00
mapsounds.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
menu_background.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menu_background.h Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus.h Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus_browser.cpp Use std::size instead of sizeof(a) / sizeof(a[0]) 2022-03-30 18:55:04 +02:00
menus_demo.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus_ingame.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus_settings.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus_settings_assets.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus_start.cpp Retry tutorial join after 5 seconds 2022-03-25 17:37:55 +01:00
motd.cpp More colors from chat in console 2021-03-08 01:20:28 +01:00
motd.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
nameplates.cpp Improve nameplate boundary and clarify comments 2022-03-24 15:43:58 +01:00
nameplates.h Show keystrokes in the nametag and new option cl_show_direction_below to show the keypresses below the players 2022-02-11 14:05:37 +01:00
particles.cpp Add Vulkan backend 2022-03-21 12:39:51 +01:00
particles.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
players.cpp Merge #4930 2022-03-31 07:45:20 +00:00
players.h Seperate hook collision line from player rendering 2022-03-22 19:19:44 -05:00
race_demo.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
race_demo.h Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
scoreboard.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
scoreboard.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
skins.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
skins.h Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
sounds.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
sounds.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
spectator.cpp make spectators team independent 2022-03-14 13:25:47 +01:00
spectator.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
statboard.cpp Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
statboard.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
voting.cpp Merge #4623 2022-01-21 21:26:21 +00:00
voting.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00