flat assembler
Message board for the users of flat assembler.
![]() Goto page 1, 2 Next |
Author |
|
randall 28 Apr 2015, 18:54
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 29 Apr 2015, 01:39
Very nice - i get 16fps on my dual core HT lappy.
|
|||
![]() |
|
macgub 29 Apr 2015, 07:46
Unhappily my cpu don't support AVX2 and FMA3. I'm sad.
![]() |
|||
![]() |
|
tthsqe 07 May 2015, 18:12
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 08 May 2015, 08:21
tthsqe wrote: Would you like to see the code for the program that made those movies? Yes, sure. |
|||
![]() |
|
80286 08 May 2015, 10:18
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 08 May 2015, 10:23
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 08 May 2015, 11:11
revolution wrote: It does not Thanks for clearing that. I am preparing to get an actual PC who can use those instruction sets. |
|||
![]() |
|
tthsqe 27 Jul 2015, 05:05
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 27 Jul 2015, 12:53
Yup. Crashes here too. Something isn't supported I guess.
Win7 Ultimate 9GB RAM |
|||
![]() |
|
randall 28 Jul 2015, 19:59
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 28 Jul 2015, 20:02
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 29 Jul 2015, 00:49
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 29 Jul 2015, 10:30
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 29 Jul 2015, 14:52
Hi, Randall:
The CPU type is the Intel Core I7-5500U CPU @2.4GHZ. Thanks. Kenneth Zheng _________________ Pure Assembly Language Funs |
|||
![]() |
|
randall 29 Jul 2015, 19:56
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 29 Jul 2015, 23:57
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 13 Aug 2015, 09:53
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 13 Aug 2015, 10:04
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.