diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2025-01-20 05:59:20 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2025-01-20 05:59:20 +0100 |
commit | 46921f9a29552ac34edaeebdb815d6466955c60c (patch) | |
tree | 038c64b2bff274463ff7b46c1a9cde74ae148a20 | |
parent | 29f33a24fd53852eacf7c9af925a2e113f12ed66 (diff) | |
download | reduced_system_layer-46921f9a29552ac34edaeebdb815d6466955c60c.zip |
Fix Web time
-rw-r--r-- | index.htm | 4 | ||||
-rw-r--r-- | reduced_system_layer.c | 14 |
2 files changed, 7 insertions, 11 deletions
@@ -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) |