8000 Menu Loop · Issue #4 · Overv/MineAssemble · GitHub
[go: up one dir, main page]

Skip to content

Menu Loop #4

Open
Open

Description

When I press Enter to start playing, it loops back to the menu.

Activity

  1. asido commented on Jul 1, 2013

    @asido

    I am quite sure that an issue here is with SSE 16 byte alignment. I was able to reproduce the issue and building with SSE disabled solved it. Specifically the restart is caused by function 'uint8_t raytrace(vec3 pos, vec3 dir, hit* info)' in src/reference.c:

        int x = (int) pos.x;
        int y = (int) pos.y;
        int z = (int) pos.z;

    GCC generates SSE instructions here which trash all registers.

    Here is the patch to Makefile:

    diff --git a/Makefile b/Makefile
    index 9c47644..e708464 100644
    --- a/Makefile
    +++ b/Makefile
    @@ -6,6 +6,7 @@ CFLAGS:=-std=c99 -MMD
     CFLAGS+=-m32
     CFLAGS+=-g -ggdb
     CFLAGS+=-O3 -ffast-math
    +CFLAGS+=-mno-sse
     CFLAGS+=-ffreestanding -nostdlib -nostdinc -fno-builtin -nostartfiles -nodefaultlibs -fno-exceptions -fno-stack-protector -static -fno-pic
    
     LDFLAGS=-m elf_i386
  2. Overv commented on Jul 1, 2013

    @Overv
    Owner

    This might just explain why the raytracing function doesn't work on my laptop at all. Nice find!

  3. KoolenDasheppi commented on Mar 14, 2016

    @KoolenDasheppi

    Could you add it to the prebuilt ISO? I don't have a Linux machine, so I don't think I can build it...

  4. Overv commented on Mar 14, 2016

    @Overv
    Owner

    Unfortunately I don't have a Linux machine available right now either.

  5. KoolenDasheppi commented on Mar 15, 2016

    @KoolenDasheppi

    I'm gonna try it with Cygwin, I will get back to you when I am done. (If it even works)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0