Client-Threads Proposal
- userinteraction: (may be split into input and output thread) input from and output to the user:
- Input is parsed by the ui-elements (buttons, menus, viewport....)
which post messages to the global event queue.
- Screen-output is constantly refreshed (is needed for
client-side-animation)
- Data is read from the local database
- Input is parsed by the ui-elements (buttons, menus, viewport....)
which post messages to the global event queue.
- player:
Logs in to WorldForge-server, stores player-id to disk...., interprets userinput from global event queue, sends action commands to the server (or client-agent)
- database:
Refreshes and sorts game-data, which it receives from the server (or client-agent) takes user-commands from the event queue.
- media-cache (or media-provider)
Tries to get stuff from the media-server, meanwhile it supports default-media (is asked from db to get new grafx, sounds, is asked by the userinteraction-thread to provide grafx- and sound-data)
- main-loop
- Fire up everything in given order.
- Exception handling ?
- Shut down cleanly.
- Provide event queue
Integrating CORBA should not be too hard, since it is already multi-threaded.
Karsten
- Home
- -
- About
- -
- Introduction
- -
- FAQ
- -
- Team
- -
- Newbie Guide
- -
- Getting Started
- Editing Guide
- -
- Edit
- -
- Manage
- -
- New Page
- -
- Changes
- -
- Map
- -
- Password
- -
- Deprecation