Search found 43 matches

by ehaliewicz
Tue May 27, 2014 12:29 am
Forum: Exodus
Topic: Bug reports?
Replies: 48
Views: 18368

That animation is very useful, thanks for recording that. From looking at what you're doing, I think it's actually just a user interface update issue, I think the register is in fact being set correctly. On those debug windows, when you put the cursor into one of the text boxes, updates are frozen ...
by ehaliewicz
Wed May 21, 2014 4:41 am
Forum: Exodus
Topic: Bug reports?
Replies: 48
Views: 18368

I found a bug while working on some code.

Image

Basically, the line

Code: Select all

movea.l #$00FF0D1E, A6
isn't updating the A6 register.
by ehaliewicz
Mon Jan 06, 2014 4:08 am
Forum: Demos
Topic: Game of Life demo
Replies: 16
Views: 5350

much better :) but still slow :( Heh, don't worry. I just got a much faster algorithm working on my pc, and your post has inspired me to get it working on the genny. I'm (obviously) not hoping to get this kind of resolution on the genesis, but here's a hint http://www.youtube.com/watch?v=W9EF-Ug0oH...
by ehaliewicz
Sat Jan 04, 2014 11:42 pm
Forum: Demos
Topic: Game of Life demo
Replies: 16
Views: 5350

Ok, so I've figured out what the bottleneck was. It's not the memcopy, or even the cell processing, but the drawing. I restructured the program to use DMA to draw the whole screen at once, so that's very quick now. I have to speed up the algorithm (or use a different one) if I want it to be faster n...
by ehaliewicz
Fri Jan 03, 2014 1:20 am
Forum: SGDK
Topic: Sega Genesis Dev Kit (SGDK)
Replies: 789
Views: 361614

You will need gcc compiled for 68k development, some other tools and Makefile changes, etc. This is all already done for Linux, including SGDK here: https://code.google.com/p/gendev/ And some forum posts: http://gendev.spritesmind.net/forum/viewtopic.php?t=1248 Oh, awesome, now I don't have to rebo...
by ehaliewicz
Fri Jan 03, 2014 1:02 am
Forum: SGDK
Topic: Sega Genesis Dev Kit (SGDK)
Replies: 789
Views: 361614

Is there anything in particular that prevents sgdk from working properly on Linux or OSX if I swap out the gcc/ld binaries?

I'm guessing some of the tools are windows only, and I might need to tweak the makefiles, but other than that?
by ehaliewicz
Fri Dec 27, 2013 11:23 pm
Forum: Demos
Topic: Game of Life demo
Replies: 16
Views: 5350

Adding long can be not faster though. I don't really know. Updated previous post, and I'm still thinking that bits->bits lookup is possible. Do you use DMA to write name table into VRAM? I don't know which way is faster. I don't do any DMA except for perhaps when loading tiles on startup.. I don't ...
by ehaliewicz
Fri Dec 27, 2013 11:07 pm
Forum: Demos
Topic: Game of Life demo
Replies: 16
Views: 5350

ok then only lookup table will help. Haha, well, my solution already has most of the benefit of the lookup table anyway. A lookup table requires a bunch of reads (and shifts/ands to create the bitmap) to check cells, I only require one read (and a couple of compares) to check a cell, then a bunch o...
by ehaliewicz
Fri Dec 27, 2013 11:00 pm
Forum: Demos
Topic: Game of Life demo
Replies: 16
Views: 5350

Do you use lookup table to draw? And, you don't need to do copy. You can make something like this for (int x=1; x < width+1; ++x) CountsNew[x][0]=0; for (int y=1; y < height+1; ++y) CountsNew[0][y]=0; for (int y=1; y < height+1; ++y) for (int x=1; x < width+1; ++x) { CountsNew[x+1][y+1]=0; if(there...
by ehaliewicz
Fri Dec 27, 2013 10:28 pm
Forum: Demos
Topic: Game of Life demo
Replies: 16
Views: 5350

You can try prebuild table of tranlations, calculation of new state will be like: C[x][y] = T[a] [c]; where x, y - cell position. and a,b,c bitmasks of 3 rows. or somehow in another way. so, you don't need then make loop for 9 cells, and make calculations. I don't know now how to make it in best wa...
by ehaliewicz
Fri Dec 27, 2013 7:55 pm
Forum: Demos
Topic: Game of Life demo
Replies: 16
Views: 5350

too slow :(. where is vsync? :( is there source available? Did you try the updated version? It's a bit faster. As for vsync, when the screen is really hectic updating takes longer than a VBLANK (at least, I think that's the issue) so you'll always have tearing. I can't really do much about the spee...
by ehaliewicz
Fri Dec 27, 2013 12:15 am
Forum: Demos
Topic: Game of Life demo
Replies: 16
Views: 5350

Update - game of life v2

Update has arrived :) https://dl.dropboxusercontent.com/u/3581058/gol-byte-v2.bin I've improved the controls, added a grid, and a generation counter. The resolution is also quadrupled, so it's quite a bit slower. I still have an different algorithm to try, which I hope will make it run fullspeed. It...
by ehaliewicz
Tue Dec 24, 2013 1:19 am
Forum: Demos
Topic: Game of Life demo
Replies: 16
Views: 5350

Game of Life demo

So, I made a game of life simulation with GCC and the SGDK. (thanks stef!) Nothing too fancy, but it works on real hardware :D https://dl.dropboxusercontent.com/u/3581058/gol-byte-v1_001.png https://dl.dropboxusercontent.com/u/3581058/gol-byte-v1.bin Controls - Start - toggle simulation - D-pad - wh...