flat assembler
Message board for the users of flat assembler.
![]() Goto page 1, 2 Next |
Author |
|
randall
Hi,
I have implemented program that renders simple 3D scene in real-time on the CPU. Program requires CPU with AVX2 and FMA3 instruction sets support (Haswell and newer). It takes about 25 ms to render one frame on Haswell i7 (40 FPS). Screenshot and code attached.
Last edited by randall on 13 Aug 2015, 09:49; edited 2 times in total |
||||||||||||||||||||
![]() |
|
tthsqe
Very nice - i get 16fps on my dual core HT lappy.
|
|||
![]() |
|
macgub
Unhappily my cpu don't support AVX2 and FMA3. I'm sad.
![]() |
|||
![]() |
|
tthsqe
Code: Can I ask what are you working on currently? No much - I am too lazy these days to do too much programming. I am slowly building a chess gui+engine. Would you like to see the code for the program that made those movies? |
|||
![]() |
|
randall
tthsqe wrote: Would you like to see the code for the program that made those movies? Yes, sure. |
|||
![]() |
|
80286
macgub wrote: Unhappily my cpu don't support AVX2 and FMA3. I'm sad. I don't know wether my CPU supports them or not. qjulia.asm compiles without errors using FASM 1.71.39, but if I try to run it it crashes. Win8.1, Pentium Dual-Core E5300@2.6GHz 1.6 Ghz, 4GiB installed RAM |
|||
![]() |
|
revolution
80286 wrote:
When fasm compiles it doesn't use any instructions beyond 80386. So fasm can always compile even the newest instructions as long as your CPU is 80386 or later. |
|||
![]() |
|
80286
revolution wrote: It does not Thanks for clearing that. I am preparing to get an actual PC who can use those instruction sets. |
|||
![]() |
|
tthsqe
I am adding the mandelbox code to github. It is probably incomplete and some of the comments might be wrong,
![]() but you can compare how I did some things. https://github.com/tthsqe12/mandelbox I'm currently working on some dense algorithmic programs and have switched to c++ now that I have understood that compiler. I hope this board doesn't view me as a traitor. |
|||
![]() |
|
typedef
Yup. Crashes here too. Something isn't supported I guess.
Win7 Ultimate 9GB RAM |
|||
![]() |
|
randall
tthsqe wrote: I am adding the mandelbox code to github. It is probably incomplete and some of the comments might be wrong, Thanks for the info. I'm currently working on distance field rendering in C++ and DX12. GPUs are so much faster for this kind of stuff... |
|||
![]() |
|
randall
typedef wrote: Yup. Crashes here too. Something isn't supported I guess. Program requires CPU with AVX2 and FMA3 instruction sets support (Haswell and newer). |
|||
![]() |
|
Kevin_Zheng
Hi, Randall:
It's very cool, but it will crash in my win7 64bit os. it seem that the WIN64 program need align the stack address to quard word align before executed call instruction. You only added align instuction into the source code, but it only work in complier time, it can't sure that it's okay in the run time . So it will crash sometimes in WIN7 64bit OS. Thanks. Kenneth Zheng _________________ Pure Assembly Language Funs |
|||
![]() |
|
randall
Kevin_Zheng wrote: Hi, Randall: rsp alingment is ok (I'm keeping it aligned all the time by substracting aproperiate valu from rsp register). What CPU do you have? |
|||
![]() |
|
Kevin_Zheng
Hi, Randall:
The CPU type is the Intel Core I7-5500U CPU @2.4GHZ. Thanks. Kenneth Zheng _________________ Pure Assembly Language Funs |
|||
![]() |
|
randall
Kevin_Zheng wrote: Hi, Randall: Windows fails to create 8 threads on the machine without HT (in this particular case). Try to change k_thrd_count to 4. |
|||
![]() |
|
Kevin_Zheng
Quote:
Hi, Randall: Yes, you are right, when I change the k_thrd_count from 8 to 4, it worked normally in win7 64 BIT OS. Thanks. Kenneth Zheng _________________ Pure Assembly Language Funs |
|||
![]() |
|
randall
I have uploaded new version that:
* Displays error message when AVX2, FMA extensions are not supported. * Creates X threads where X is equal to the number of logical processors present on the machine. Thanks, Michal |
|||
![]() |
|
randall
Kenneth Zheng,
How many FPS do you get on your machine? Thanks. |
|||
![]() |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.