summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.htm4
-rw-r--r--reduced_system_layer.c14
2 files changed, 7 insertions, 11 deletions
diff --git a/index.htm b/index.htm
index 1207f79..e610586 100644
--- a/index.htm
+++ b/index.htm
@@ -43,7 +43,7 @@
text_buffer : text_buffer,
});
},
- p_time_impl : Date.now,
+ p_time : () => { return BigInt(Date.now()); },
floor : Math.floor,
ceil : Math.ceil,
@@ -276,7 +276,7 @@
{
env : {
p_clipboard_write_impl : () => {},
- p_time_impl : () => {},
+ p_time : () => {},
floor : () => {},
ceil : () => {},
trunc : () => {},
diff --git a/reduced_system_layer.c b/reduced_system_layer.c
index dd3ecdd..3eda619 100644
--- a/reduced_system_layer.c
+++ b/reduced_system_layer.c
@@ -189,7 +189,7 @@ i32 main(i32 argc, c8 **argv);
#endif
#ifndef MAX_NUM_PIXELS
-#define MAX_NUM_PIXELS (10 * 1024 * 1024)
+#define MAX_NUM_PIXELS (4 * 1024 * 1024)
#endif
#ifndef MAX_INPUT_SIZE
@@ -198,7 +198,7 @@ i32 main(i32 argc, c8 **argv);
#endif
#ifndef MAX_CLIPBOARD_SIZE
-#define MAX_CLIPBOARD_SIZE (10 * 1024 * 1024)
+#define MAX_CLIPBOARD_SIZE (2 * 1024 * 1024)
#endif
#ifndef MAX_NUM_SOCKETS
@@ -271,11 +271,11 @@ i32 main(i32 argc, c8 **argv);
#endif
#ifndef MAX_NUM_SOUND_FRAMES
-#define MAX_NUM_SOUND_FRAMES (10 * SOUND_SAMPLE_RATE * NUM_SOUND_CHANNELS)
+#define MAX_NUM_SOUND_FRAMES (4 * SOUND_SAMPLE_RATE * NUM_SOUND_CHANNELS)
#endif
#ifndef DROP_FILES_BUFFER_SIZE
-#define DROP_FILES_BUFFER_SIZE (20 * 1024 * 1024)
+#define DROP_FILES_BUFFER_SIZE (8 * 1024 * 1024)
#endif
#ifndef MOUSE_WHEEL_FACTOR
@@ -3027,11 +3027,7 @@ i64 p_send(u16 slot, IP_Address address, i64 size, u8 *data, u16 *local_port) {
return 0;
}
-i32 p_time_impl(void);
-
-i64 p_time(void) {
- return p_time_impl();
-}
+i64 p_time(void);
void p_sleep_for(i64 duration) {
if (duration <= 0)