wwww
Revision | 0680dc3a82a1e7c94e1142c0faa4b62c4af26515 (tree) |
---|---|
Time | 2016-08-24 19:55:47 |
Author | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
wwww polished vrstest.c
@@ -157,48 +157,24 @@ void main() { | ||
157 | 157 | |
158 | 158 | /* non sprite comparison */ |
159 | 159 | start = *clockw; |
160 | - //for(i=0; i<100 ;i++) { | |
161 | - // oldDrawBmp(VGA, 20, 20, &bmp, 0); | |
162 | - //} | |
163 | - | |
164 | - start = *clockw; | |
165 | - //for(i=0; i<100 ;i++) { | |
166 | -//0000 modexDrawBmp(&gvar.video.page[0], 20, 20, &bmp); | |
167 | - // modexDrawBmp(&gvar.video.page[0], 160, 120, &bmp); | |
168 | - //} | |
160 | + modexCopyPageRegion(&gvar.video.page[0], &gvar.video.page[0], 0, 0, 0, 0, 320, 240); | |
161 | + animate_spri(&spri); | |
169 | 162 | t1 = (*clockw-start) /18.2; |
170 | 163 | |
171 | 164 | start = *clockw; |
172 | - //for(i=0; i<100; i++) { | |
173 | -//0000 modexCopyPageRegion(&gvar.video.page[0], &gvar.video.page[0], 20, 20, 128, 20, 64, 64); | |
174 | - modexCopyPageRegion(&gvar.video.page[0], &gvar.video.page[0], 0, 0, 0, 0, 320, 240); | |
175 | - animate_spri(&spri); | |
165 | + | |
176 | 166 | draw_vrl1_vgax_modex(5,5,curr_vrl/*vrl->buffer*/,vrl->line_offsets,vrl->buffer + sizeof(struct vrl1_vgax_header),vrl->data_size); |
177 | 167 | draw_vrl1_vgax_modex(40,40,curr_vrl/*vrs.buffer*/ + vrl_headers_offsets[0],vrs.vrl_line_offsets[0],vrs.buffer + vrl_headers_offsets[0] + sizeof(struct vrl1_vgax_header),vrl_headers_offsets[1] - vrl_headers_offsets[0] - sizeof(struct vrl1_vgax_header)); |
178 | 168 | draw_vrl1_vgax_modex(100, 5, bigbuffer, off1, (byte *)bigbuffer + sizeof(struct vrl1_vgax_header), size - sizeof(struct vrl1_vgax_header)); |
179 | 169 | |
180 | - //} | |
181 | 170 | t2 = (*clockw-start)/18.2; |
182 | 171 | |
183 | 172 | //for (i = 0; i < 5; i++){ |
184 | 173 | //animate_spri(&spri); |
185 | 174 | |
186 | - start = *clockw; | |
187 | - //for(i=0; i<100 ;i++) { | |
188 | - // oldDrawBmp(VGA, 20, 20, &bmp, 1); | |
189 | - //} | |
190 | - | |
191 | - | |
192 | - start = *clockw; | |
193 | - //for(i=0; i<100 ;i++) { | |
194 | -//0000 modexDrawSprite(&gvar.video.page[0], 20, 20, &bmp); | |
195 | - // modexDrawSprite(&gvar.video.page[0], 160, 120, &bmp); | |
196 | - //} | |
197 | - //_fmemset(MK_FP(0xA000, 0), (int)p->plane, gvar.video.page[0].sw*(gvar.video.page[0].sh*2)); | |
198 | - //modexDrawBmp(&gvar.video.page[0], 0, 0, &bmp); | |
199 | 175 | while(!kbhit()) |
200 | 176 | { |
201 | - //DrawPBuf(&gvar.video.page[0], 0, 0, p, 0); | |
177 | + modexPalUpdate0(pal); | |
202 | 178 | } |
203 | 179 | VGAmodeX(0, 1, &gvar); |
204 | 180 | free(spri.sprite_vrl_cont); |
@@ -206,21 +182,10 @@ void main() { | ||
206 | 182 | //MM_FreePtr(&((void __based(sega)*)spri.spritesheet->buffer), &mm); |
207 | 183 | MM_Shutdown(&mm); |
208 | 184 | CA_Shutdown(&gvar); |
209 | - /*printf("\nmain=%Fp\n\n", &i); | |
210 | - printf("bmp.data=%Fp\n", bmp.data); | |
211 | - printf("*bmp.data=%Fp\n", *(bmp.data)); | |
212 | - printf("&bmp.data=%Fp\n", &(bmp.data)); | |
213 | - | |
214 | - printf("\n%d\n", sizeof(p->plane)); | |
215 | - printf("%d\n", sizeof(bmp));*/ | |
216 | - | |
217 | - /*for(i=0; i<(320*240); i++) | |
218 | - { | |
219 | - fprintf(stdout, "%d", bmp.data[i]); | |
220 | - if(i%bmp.width==0) fprintf(stdout, "\n"); | |
221 | - }*/ | |
222 | - printf("CPU to VGA: %f\n", t1); | |
223 | - printf("VGA to VGA: %f\n", t2); | |
185 | + //printf("CPU to VGA: %f\n", t1); | |
186 | + //printf("VGA to VGA: %f\n", t2); | |
187 | + printf("t1: %f\n", t1); | |
188 | + printf("t2: %f\n", t2); | |
224 | 189 | printf("gvar.video.page[0].width: %u\n", gvar.video.page[0].width); |
225 | 190 | printf("gvar.video.page[0].height: %u\n", gvar.video.page[0].height); |
226 | 191 | printf("Num %d", num_of_vrl); |