Jin Xue

Results 8 comments of Jin Xue

Pattern matching seems to be slightly faster than if-elif for compiling ```python m = Module() mem = Memory(width=32, depth=0xb80) m.submodules.rport = mem.read_port() m.submodules.wport = mem.write_port() sim = Simulator(m) sim.run() ```...

They are very close ```python def process(): for i in range(depth): yield dut.waddr.eq(i) yield dut.wdata.eq(i) yield dut.we.eq(1) yield sim.add_sync_process(process) start = time.time() sim.run() end = time.time() print(end - start) ```...

Thanks for the comment! I'm not quite sure about the sun position because I used the same formula in sun_vertex() to calculate the sun position so the lighting should follow...

Um...have no idea how to fix it either. Maybe we should initialize the blocks after the window is created?

Good job! This also makes it possible to reload the texturepack without restarting the game. BTW, does this have any effect on performance?

I prefer socket too(though flask is more convenient).

The sun position is calculated from the time of day. The problem is that time is not synchronized between clients.

Why not make a script to download pyglet and other libraries and install them automatically, that will be convenient.