Commit Graph

194 Commits

Author SHA1 Message Date
Sascha L. Teichmann
da2b327985 Wait until all tiles are written out or are cancelled. 2022-03-01 21:02:08 +01:00
Sascha L. Teichmann
c507663826 Use a more general db client factory approach. 2022-03-01 14:47:14 +01:00
Sascha L. Teichmann
834c8a9bc6 Use database abstration in tilemapper, too. 2022-03-01 13:59:41 +01:00
Sascha L. Teichmann
68ce57aa75 Fixed command line parameter. 2022-03-01 13:50:18 +01:00
Sascha L. Teichmann
6fb338dbb8 Another try to fix not removing last player. 2022-02-28 21:26:04 +01:00
Sascha L. Teichmann
6ffa0e1001 Name players correctly. 2022-02-28 16:21:26 +01:00
Sascha L. Teichmann
db45013f4e Simplified player forwarding. Forward empty player list 2022-02-28 15:49:14 +01:00
Sascha L. Teichmann
1ec9d8916b select players position from database. 2022-02-28 13:37:00 +01:00
Sascha L. Teichmann
8c6ab34e6a Fetch player pos from postgres 2022-02-28 13:21:28 +01:00
Sascha L. Teichmann
d98df1c1cd WIP: add tile updating in in web mapper with pg listen/notify 2022-02-28 11:07:50 +01:00
Sascha L. Teichmann
ae230d5abf Use db abstraction in webmapper. 2022-02-27 21:31:55 +01:00
Sascha L. Teichmann
4f7fedf0b9 Use db client factory in seeder. 2022-02-27 21:17:43 +01:00
Sascha L. Teichmann
34d01762f0 Started with db abstraction in seeder. 2022-02-27 21:02:16 +01:00
Sascha L. Teichmann
e0040226c5 Fixed mtredisalize LevelDB backend which did not broadcast changes. 2017-05-14 18:35:45 +02:00
Sascha L. Teichmann
c067fc0618 Backed out changeset 2f388b07f19a (no measurable effect) 2017-04-15 13:17:31 +02:00
Sascha L. Teichmann
65119c1ee4 Priotize again. 2017-03-21 16:25:58 +01:00
Sascha L. Teichmann
54a4527fda Fixed problem raised from the removal of the doWrite closure. 2017-03-21 16:05:59 +01:00
Sascha L. Teichmann
e4ad3a84d8 Removed locking from LevelDB entirely.
It is not needed because LevelDB itself handles concurreny issues
and it causes a lot of contentions and massive lags.
2017-03-21 08:40:44 +01:00
Sascha L. Teichmann
aad612d097 Experimental increased priorities for typical mt-server ops. 2017-03-20 12:41:24 +01:00
Sascha L. Teichmann
6a1356f0eb When an tile is rendered the writing to disk can be done in background
concurrently to the rendering of the next tile.
2017-03-06 15:43:30 +01:00
Sascha L. Teichmann
e68e762322 Support unix domain sockets in redis clients, too. 2017-03-05 14:38:30 +01:00
Sascha L. Teichmann
ba2dd15280 Support unix domain sockets. 2017-03-05 14:03:02 +01:00
Sascha L. Teichmann
91959685f5 Re-worked memory management of blocks loaded from redis client to avoid
unnecessary copying them around.
2017-03-03 23:00:29 +01:00
Sascha L. Teichmann
3a9fd0ca1e Cosmetical: Replaced a map to bools by a map with struct{} values because its more a set. 2017-02-27 16:12:19 +01:00
Sascha L. Teichmann
540836b174 Made mttilemapper compile again. 2017-02-26 21:22:14 +01:00
Sascha L. Teichmann
fea2286237 Reverted accidentally committed profiling stuff. 2017-02-26 17:05:45 +01:00
Sascha L. Teichmann
3e3413566b Only do expensive area coverage calculation if there where blocks loaded from database.
If there are not, nothing changed, so nothing to recalculate.
Takes a good deal from the clock.
2017-02-26 12:57:38 +01:00
Sascha L. Teichmann
6b5f791a8a Use write lock when executing block deletion. 2016-07-27 16:38:54 +02:00
Sascha L. Teichmann
d6ddd047a4 Fixed and simplified redis network code. 2016-07-26 16:32:24 +02:00
Sascha L. Teichmann
60f43c9f52 Implementation of Redis command HDEL. Needs testing. For issue #18. 2016-07-26 16:15:10 +02:00
Sascha L. Teichmann
bae7e7c3e6 Made size of hashes LRU cache a parameter set by the webmapper. 2016-05-10 21:02:16 +02:00
Sascha L. Teichmann
7cbe2e516c Revert enabling websockets by default. Slipped in by accident. 2016-05-10 20:53:58 +02:00
Sascha L. Teichmann
69ee5af388 Implemented a simple LRU cache with max 256 entries for base tile hasing. TODO: Improve test. 2016-05-10 18:57:14 +02:00
Sascha L. Teichmann
5d1be98ae5 Cosmetics. 2016-05-08 23:27:11 +02:00
Sascha L. Teichmann
4c24a01607 Use empty structs instead of bools in changes. 2016-05-08 23:20:51 +02:00
Sascha L. Teichmann
da309c73d8 Removed obsolete comment. 2016-05-08 23:12:29 +02:00
Sascha L. Teichmann
496a60aa29 Simplified mask embedding in parent calculation of pyramid tiles. 2016-05-08 23:07:19 +02:00
Sascha L. Teichmann
da2a6a82d4 Simplified tiles update processing and forwarding. 2016-05-08 22:30:00 +02:00
Sascha L. Teichmann
0900bd16ce Finished logic to supress pyramid regeneration in mtwebmapper. Untested. 2016-05-08 15:38:50 +02:00
Sascha L. Teichmann
4bed73d9e3 Prepare tiles updater in webmapper to have unupdated base tiles. 2016-05-08 15:13:40 +02:00
Sascha L. Teichmann
9f1735eb29 mtredisalize: Renamed parser.go to redisparser.go 2016-04-25 11:46:59 +02:00
Sascha L. Teichmann
72bd5ec77a mtredisalize: Removed a useless level of abstraction in redis parser. 2016-04-25 11:43:50 +02:00
Sascha L. Teichmann
14ae6d3873 s/SqliteBackend/SQLiteBackend/ s/SqliteSession/SQLiteSession/ in mtredisalize. 2016-04-24 20:54:05 +02:00
Sascha L. Teichmann
d21fa6c027 Be more explicit about data flow directions of the channels in mtredisalize. 2016-04-24 20:47:55 +02:00
Sascha L. Teichmann
4dc43881c6 Added a few more comments to mtredisalize and unexport a few symbols. 2016-04-24 19:41:15 +02:00
Sascha L. Teichmann
7ac3c67e63 Made mtdbconverter pass golint by adding the missing comments. 2016-04-24 18:37:08 +02:00
Sascha L. Teichmann
ea57c7c35f Silence all warnings of golint not related to missing comments. 2016-04-24 12:41:58 +02:00
Sascha L. Teichmann
607b4de9ec Dedup code. 2016-04-23 21:09:23 +02:00
Sascha L. Teichmann
0db9b519a6 Implement fetaure request issue #17
mtseeder and mtwebmapper got an option to set the background color where no nodes are generated, yet.
2016-04-23 16:45:33 +02:00
Sascha L. Teichmann
0f01065fdf Merged. 2016-04-06 11:45:59 +02:00