Create an account

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Darkplaces Code

Has anyone messed with the engine code? It's a nasty mess with very little in the way of comments. I'm looking for the offset mapping shader, but I've been going in circles. I am determined to shred this code to pieces till I understand it. I want to optimize a good chunk of it if possible, it feels slow sometimes.

grep "offsetmapping" *.c

--> gl_rmain.c

static const char *builtinshaderstring

Ahhh, duh, though win7 doesn't have grep Sad That's what I was worried about, I didn't see any references to shader code. Means LH didn't write his own...

Nvm, it's a large string, parsed by GL? Who cares...I'll start sorting through it.

Hmmm... doesn't Win7 have some sort of indexing service for a fulltext search on files?

Anyway, yes, GLSL shaders are delivered as sourcecode to the driver, which then compiles them, optimizing for the hardware present.

Same is true for Cg. I think this also applies to HLSL, less sure on that, though.

Possibly Related Threads...
Thread Author Replies Views Last Post
  What was easy for you in development? (Darkplaces and QuakeC programming) LegendGuard 2 550 08-08-2020, 05:25 PM
Last Post: LegendGuard
  [META] DarkPlaces fork Lyberta 30 4,094 07-22-2020, 12:58 PM
Last Post: Cloudwalk
  Trying to understand darkplaces source code wiefie 37 8,009 09-22-2017, 01:37 PM
Last Post: Lyberta
  Module (music) support for Darkplaces (again) [test it] nilyt 8 5,735 04-21-2015, 08:24 PM
Last Post: BuddyFriendGuy
  Altering Xonotic Source Code perljamz10 7 9,636 02-26-2013, 06:19 PM
Last Post: Mr. Bougo
  darkplaces wiki down .... hutty 4 5,432 10-13-2012, 09:47 PM
Last Post: hutty
  Parallelization of Xonotic (and Darkplaces engine) Sarge999 19 15,864 11-21-2011, 03:22 PM
Last Post: Sarge999
  Planning to help with the code - where to start? Exitium 10 7,651 09-19-2011, 10:25 AM
Last Post: Lord Canistra
  [SOLVED] Compiling from GIT fails: darkplaces unfa 10 11,691 06-20-2011, 07:58 AM
Last Post: unicornsteak
  Want to start helping with Xonotic code JayWalker 4 5,511 03-20-2011, 01:46 AM
Last Post: Akari

Forum Jump:

Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-