OSDN Git Service

fixed an issue of bakapi.exe while in pan mode you cannot escape until you press...
[proj16/16.git] / sparky4.do
1 todo of sparky4
2 use space??
3 rm segmlen ok
4 code it!
5
6 what?
7
8
9
10 test which modex library is faster! workings w
11 edit input and switch unecessary words to bytes ok
12
13 font! ok
14 jis! ...
15 memory segmentation! trying ow2
16
17
18 dro from dosbox
19 dro to vgm get
20
21 16_in
22 16_mm
23
24 READ DESIGN.TXT
25
26
27 ====
28 make a super fuckin minimal version of the engine of wolf3d
29 CA!!
30 SD!!
31 ENGINE CORE!!!!
32 PM!!
33 unserstand how RF works                                 reprep tile scroll stuff again.
34 VL && VW redo... (like orgonikze and such)
35         borland c hax for gfx stuff
36
37
38 !!display offset array (like wolf3d's)!!
39
40 what did i do last?
41
42 i did some minor things including commenting out some joy stick timing stuff and trying to reprep tile scroll stuff again. although i NEED to look at id_rf.c
43 ah TEST JOYSTICK
44 ====
45
46
47
48
49
50 [13:11] Dark_Fox        Well, it's hard for me to unspaghetti the code to see what's going on here, but it looks like you're writing directly to the video part of the memory each time you have an update
51 [13:12] sparky4 Dark_Fox:  yeah
52 [13:12] Dark_Fox        It also looks like a significant amount of your functions use global variables
53 [13:12] sparky4 i know
54 [13:12] sparky4 it's a game
55 [13:12] Dark_Fox        That's why your code is shit, though
56 [13:12] sparky4 ....
57 [13:12] Dark_Fox        You don't have a video buffer and you're using way too many global variables
58 [13:12] sparky4 if you want to then fix ww
59 [13:13] Dark_Fox        This is what I was talking about, you don't understand what you're writing
60 [13:13] sparky4 is it called global variables to pointers?
61 [13:13] sparky4 Dark_Fox: where the variables at?
62 [13:13] Dark_Fox        Global variables are stored in a different part of memory, so you have to make a far call every time you access it
63 [13:14] Dark_Fox        Which is much less efficient than a near call (like a variable that has been instantiated inside of your function)
64 [13:14] sparky4 Dark_Fox: ah~
65 [13:14] Dark_Fox        Which basically amounts to taking up extra CPU time everytime you use a global variable as opposed to a local variable
66 [13:14] sparky4 i know i know!
67 [13:14] Dark_Fox        You have the same problem with the video memory, which is partially unavoidable, but you need to be smarter about when and how you access the video memory
68 [13:15] Dark_Fox        Instead of touching it every time there's a change, you should set a timer that says, like, thirty times per second you update the video memory
69 [13:15] Dark_Fox        It could be even lower, like ten times per second you make a draw call
70 [13:15] sparky4 Dark_Fox: ah that is in there
71 [13:15] Dark_Fox        And everytime there's a change between those updates, you just store the update in a buffer instead