Author Topic: What Needs Fixed In Huc?  (Read 2680 times)

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What Needs Fixed In Huc?
« Reply #30 on: October 09, 2011, 04:11:16 PM »
With huc switch/case are very slow, i don't use that statement in huc ..
i have tested with if, elseif, and it's more efficient in term of speed, but code is very dirty too .

You can test, with a single proc call in a vsync ..
test your proc with if, elseif, and with switch case ..

Another strange thing with Huc ..

spr_set(1) (not the only one), huc convert this function in asm with :

Code: [Select]
ldx #low(1)
lda #high(1)

call _spr_set
Just fine  :-" ..

just with this liltle routine you can loose up to 128 cycles/frame .

I didn't mean testing it on HuC, because I don't expect HuC to do anything the traditional (read: correct) way.

If it's fast/useful in C, it's probably jacked up in HuC.

Structs are missing, pointers are broke, arrays are derped, and iirc, >> and << don't perform better than / and *.

so, yeah, it's barely even C.  Let's start calling it HuB
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

touko

  • Hero Member
  • *****
  • Posts: 953
Re: What Needs Fixed In Huc?
« Reply #31 on: October 09, 2011, 08:34:50 PM »
Yes arkhan switch/case are those cool stuffs on C that sucks in HuC ..

I think that HuC needs to be refund entirely,actualy it is functional, no more no less.
I also think it will be more a waste of time to change, rather than start from scratch IMO.

But who'll have the skills here to do this ?
Ultimately, one person could handle the compiler, and others may do functions, libraries , startup etc ...

A good HuC version, needs to be less noobinators (copyright Arkhan) to be optimal, and keep version 3.21 for beginners.
« Last Edit: October 09, 2011, 09:08:02 PM by touko »

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What Needs Fixed In Huc?
« Reply #32 on: October 10, 2011, 01:15:51 AM »
I also think it will be more a waste of time to change, rather than start from scratch IMO.
Not really.  The problems in HuC could be tweaked and fixed.  Starting from scratch would be nice, but would be way more work. 

Quote
But who'll have the skills here to do this ?
Ultimately, one person could handle the compiler, and others may do functions, libraries , startup etc ...
TheOldMan and myself might be the only two compiler-capable people here.  I'm no expert like OldMan, but I can do some things. ;).  The problem then becomes, is it worth the time for us to sink into doing this as opposed to making games. 


Quote
A good HuC version, needs to be less noobinators (copyright Aetherbyte) to be optimal, and keep version 3.21 for beginners.
fixed. :)
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

spenoza

  • Hero Member
  • *****
  • Posts: 2751
Re: What Needs Fixed In Huc?
« Reply #33 on: October 10, 2011, 09:24:54 AM »
If fixing HuC would lower the bar of entry and make it easier for others to get into the scene and start pumping out fun games, then I would say it would be better to fix HuC to ensure a more diverse range of homebrew offerings.
<a href="http://www.pcedaisakusen.net/2/34/103/show-collection.htm" class="bbc_link" target="_blank">My meager PC Engine Collection so far.</a><br><a href="https://www.pcenginefx.com/forums/" class="bbc_link" target="_blank">PC Engine Software Bible</a><br><a href="http://www.racketboy.com/forum/" c

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What Needs Fixed In Huc?
« Reply #34 on: October 10, 2011, 10:17:33 AM »
it would lower the bar but still require you to know how to program and work with limited resources.  That sort of talent is falling by the wayside more and more every day.

[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

grahf

  • Hero Member
  • *****
  • Posts: 880
Re: What Needs Fixed In Huc?
« Reply #35 on: October 11, 2011, 02:30:27 AM »
True, but at least it would give people a chance to see something on the screen more easily and whet their appetites.

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What Needs Fixed In Huc?
« Reply #36 on: October 11, 2011, 02:33:07 AM »
True, but at least it would give people a chance to see something on the screen more easily and whet their appetites.

In HuC's current state, it's still easy to get things on the screen.  The problems arise when you get deeper into the mechanics of a game.  About the only thing HuC does good is put sprites on screen and move them around.

New people won't notice the differences really until they get reallllllllly into it.

[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

nodtveidt

  • Guest
Re: What Needs Fixed In Huc?
« Reply #37 on: October 11, 2011, 06:14:23 AM »
Indeed. When you're deep into a project like MSR with multiple overlays, dozens of variables at several scopes, and stack abuse that would make K&R either cry or bow in worship, you will see just how broken the system really is and why it needed to be maintained. HuC is perfectly usable as-is and works great for making Hucard games. When you get into making CDs, things can get unpredictable.

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What Needs Fixed In Huc?
« Reply #38 on: October 11, 2011, 07:47:21 AM »
It really only works great for HuCard games.  The CD stuff is definitely where things start to get derpolicious.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

spenoza

  • Hero Member
  • *****
  • Posts: 2751
Re: What Needs Fixed In Huc?
« Reply #39 on: October 11, 2011, 04:40:09 PM »
So HuC would be perfectly adequate for an arcadey shooter or platformer, but it's apparently craptastic for RPGs?
<a href="http://www.pcedaisakusen.net/2/34/103/show-collection.htm" class="bbc_link" target="_blank">My meager PC Engine Collection so far.</a><br><a href="https://www.pcenginefx.com/forums/" class="bbc_link" target="_blank">PC Engine Software Bible</a><br><a href="http://www.racketboy.com/forum/" c

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What Needs Fixed In Huc?
« Reply #40 on: October 11, 2011, 04:44:41 PM »
So HuC would be perfectly adequate for an arcadey shooter or platformer, but it's apparently craptastic for RPGs?

Platformer, yeah.

Arcadey shooter, maybe.  Depends how apeshit you go with the graphics. 
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

nodtveidt

  • Guest
Re: What Needs Fixed In Huc?
« Reply #41 on: October 11, 2011, 05:18:34 PM »
It's hard as hell to make an RPG to begin with, let alone one with HuC and all its flaws. As for arcade shooters... well, that depends on a lot of things... if you have a lot of enemies/bullets/etc, using arrays to keep track of it is going to give your game more slowdown than 95% of SNES games. Using individual variables is great for speed but is going to bloat the f*ck outta your code. If only arrays didn't suck...

mrhaboobi

  • Hero Member
  • *****
  • Posts: 693
Re: What Needs Fixed In Huc?
« Reply #42 on: October 11, 2011, 10:17:52 PM »
anyone considered dropping dave shadoff a line to see if he updated hu c at all?  i see he has an active site ( active in that it still exists un like zeograd which appears to be dead.  Rover for some of us newbs explain to us where you learnt the basic of gaming?  by trade i write tcp/udp based mobile applications, but not much experience in gaming algorithms etc.. have basic stuff up and running on yaroze ( psx dev ) and xbox, but its really some of the underlying principles on game dev and algorithms and how to deal with gravity when doing platformers etc that im keen to understand.  old schoool game coding i guess :)
 
Looking for (MINT ONLY)
US Manual : Magical Chase, Shockman 
US Box : Turrican,  Soldier Blade, New Adventure Island, Neutopia II
Other : Sapphire OBI, Turbo Play Aug/Sept 90, April/May 92, Turbo Edge Spring 90

PC Engine Special Cards : Bomberman User Battle

Alydnes Super Grafx

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: What Needs Fixed In Huc?
« Reply #43 on: October 12, 2011, 01:29:42 AM »
Dave Shadoff?

Who do you think said "It's not worth fixing if no one is using it."

lol.  I ran all of the problems with HuC by them on IRC and was met with apathy: The recurring PCE Dev theme.

I think the entire original "TGHack" crew is about done with doing anything.  They had their glory days back in 1996-2005ish, and now have moved onto other things.  They still float around/post (kind of)/chat on IRC...but they aren't doing anything.  They didn't seem too interested in doing anything either. Maybe one day they will again.

The one guy is a phantom (Jens).  He just disappeared.  I asked where he went and was given a "don't ask" response, implying there is a grudge or some lingering loldrama.  *shrug*.  He would have been great to prod for info when Squirrel was a new idea.  Oh well.

I myself learned the basics of game programming from a few books for Windows (One for 2D, one for 3D, one for DirectX and one for RPG design), screwing with allegro (tons of open source crap!), messing with RPG Makers (Verge, RPGMaker2000399024), screwing with QBASIC games, and doing crap on the C64 (type-ins, experimenting...).

Those goony old books for 8 bit computers really do a good job of explaining things about games that you don't get told anymore.  Crazy.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

touko

  • Hero Member
  • *****
  • Posts: 953
Re: What Needs Fixed In Huc?
« Reply #44 on: October 14, 2011, 03:05:18 AM »
eh, I also forgot a more faster cd_loadvram()  :D