aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-10-11 09:45:18 +0000
committerrodri <rgl@antares-labs.eu>2023-10-11 09:45:18 +0000
commit87952fb18827d804a53fe8c12562a0444e4f59dd (patch)
tree3f4d7453fac90af983b48e90d3a4f516e7daaac7
parent650a361f5a04e4fc39ade90459d280d227875cb1 (diff)
downloadmusw-front.tar.gz
musw-front.tar.bz2
musw-front.zip
got rid of yield(2) abuse.HEADfront
-rw-r--r--musw.c5
-rw-r--r--muswd.c5
-rw-r--r--todo1
3 files changed, 5 insertions, 6 deletions
diff --git a/musw.c b/musw.c
index fd8c8ac..e4367ea 100644
--- a/musw.c
+++ b/musw.c
@@ -697,7 +697,7 @@ soundproc(void *)
}
void
-threadshow(void *)
+runshow(void)
{
uvlong then, now, frametime, lastpktsent;
Vfx *vfx;
@@ -834,6 +834,5 @@ threadmain(int argc, char *argv[])
threadcreate(threadnetppu, nil, mainstacksize);
threadcreate(threadnetsend, &fd, mainstacksize);
threadcreate(threadresize, mc, mainstacksize);
- threadcreate(threadshow, nil, mainstacksize);
- yield();
+ runshow();
}
diff --git a/muswd.c b/muswd.c
index a61595c..282fea7 100644
--- a/muswd.c
+++ b/muswd.c
@@ -330,7 +330,7 @@ broadcaststate(void)
}
void
-threadsim(void *)
+runsim(void)
{
int i;
ulong kdown;
@@ -536,6 +536,5 @@ threadmain(int argc, char *argv[])
threadcreate(threadnetrecv, &adfd, mainstacksize);
threadcreate(threadnetppu, nil, mainstacksize);
threadcreate(threadnetsend, &adfd, mainstacksize);
- threadcreate(threadsim, nil, mainstacksize);
- yield();
+ runsim();
}
diff --git a/todo b/todo
index 552db4b..7c80902 100644
--- a/todo
+++ b/todo
@@ -17,6 +17,7 @@
[✓] main game
[ ] keep a score
[ ] manage health
+ > related to hyperjump and the increasing likelihood of its destroying the ship.
[ ] reduce the amount of data sent on every NSsimstate packet
[✓] only send the fired bullets
[ ] bit packing