Search found 7 matches

by Maraakate
Mon Aug 17, 2015 11:51 pm
Forum: Quake 2 dev
Topic: Quake II with 8-bit colored lighting ref_soft.dll
Replies: 27
Views: 70088

Re: Quake II with 8-bit colored lighting ref_soft.dll

I'm also going to try talking to the folks over the NASM and MASM forums for guidance in porting over the remaining small remnants that would allow it all to be fully ASM again. If this becomes possible then maybe they would able to help with creating an ASM function for generating the RGB table at ...
by Maraakate
Mon Aug 17, 2015 11:41 pm
Forum: Quake 2 dev
Topic: Quake II with 8-bit colored lighting ref_soft.dll
Replies: 27
Views: 70088

Re: Quake II with 8-bit colored lighting ref_soft.dll

I have been developing on Windows first then adjusting the ASM as necessary in GCC. the id386ALIAS is technically a remnant they commented out. I used it to take advantage of a special case hack. Setting r_coloredlighting > 1 will set a different mode that will use ASM for the Opaque and ClipEdge fu...
by Maraakate
Mon Aug 17, 2015 6:44 am
Forum: Quake 2 dev
Topic: Quake II with 8-bit colored lighting ref_soft.dll
Replies: 27
Views: 70088

Re: Quake II with 8-bit colored lighting ref_soft.dll

Okay, fixed R_PolysetCalcGradient win32 ASM. This resulted in an extra 10 fps boost in timedemos! https://bitbucket.org/neozeed/q2dos/com ... a4d63295fa
by Maraakate
Mon Aug 17, 2015 6:10 am
Forum: Quake 2 dev
Topic: Quake II with 8-bit colored lighting ref_soft.dll
Replies: 27
Views: 70088

Re: Quake II with 8-bit colored lighting ref_soft.dll

Also, see this commit: https://bitbucket.org/neozeed/q2dos/commits/5a9f38673a0e41e3bbdc6b958ed30af9ad4221f3 for speed improvement on the renderer. It's not drastic, but I got about 4-6fps on average gain from running timedemos compared to the previous code. I also may be able to port the extra lrste...
by Maraakate
Mon Aug 17, 2015 5:43 am
Forum: Quake 2 dev
Topic: Quake II with 8-bit colored lighting ref_soft.dll
Replies: 27
Views: 70088

Re: Quake II with 8-bit colored lighting ref_soft.dll

Yes, uncoloured is using assembly. We are using DXEs (the DOS equivalent of DLLs in DJGPP) so video renderer's can be switched on the fly to do timedemos and compares. I went ahead and added it as a menu option in the video menu as well as "Software Qbism". I've also updated the code slightly to use...
by Maraakate
Sun Aug 16, 2015 11:47 pm
Forum: Quake 2 dev
Topic: Quake II with 8-bit colored lighting ref_soft.dll
Replies: 27
Views: 70088

Re: Quake II with 8-bit colored lighting ref_soft.dll

Also, your code can build just fine in vs6 and in gcc/djgpp the only thing that doesn't work is the pragma hint. This stuff is unknown in those compilers. Not sure how much of a performance impact that is.
by Maraakate
Sun Aug 16, 2015 10:49 pm
Forum: Quake 2 dev
Topic: Quake II with 8-bit colored lighting ref_soft.dll
Replies: 27
Views: 70088

Re: Quake II with 8-bit colored lighting ref_soft.dll

Hey Qbism. I just recently ported your coloured dlight renderer to q2dos as a separate rendering path to choose from. I'm hoping sometime soon I can take some of the ASM for the easier C path stuff (like the if/else for light vs colouredlight pointers) so it can get a speed boost. Here's a link: htt...