Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Xenon 2 Megablast Port
#11
Another idea that could help in your code too: most of the time, to look for a free slot, you iterate through the elements of the arrays (.is_active), maybe the use of bit sets may help to be faster (all on a u16 if max elements <=16, u8 if <= 8...), looking for the first bit equal to 0 in a number can be faster -> no memory read
there is a cpu instructions for that (BS1F, BS1B), but not in C (but easy loop)
Reply


Messages In This Thread
Xenon 2 Megablast Port - by Napomex - 07-17-2026, 04:59 AM
RE: Xenon 2 Megablast Port - by Ahchay - 07-17-2026, 06:24 AM
RE: Xenon 2 Megablast Port - by sodthor - 07-17-2026, 06:45 PM
RE: Xenon 2 Megablast Port - by Ahchay - 07-17-2026, 07:28 PM
RE: Xenon 2 Megablast Port - by Napomex - 07-18-2026, 08:44 AM
RE: Xenon 2 Megablast Port - by Napomex - 07-31-2026, 06:24 AM
RE: Xenon 2 Megablast Port - by sodthor - 07-31-2026, 04:55 PM
RE: Xenon 2 Megablast Port - by sodthor - 08-01-2026, 06:30 AM
RE: Xenon 2 Megablast Port - by Napomex - 08-01-2026, 07:35 AM
RE: Xenon 2 Megablast Port - by sodthor - 08-02-2026, 03:27 AM
RE: Xenon 2 Megablast Port - by sodthor - 08-02-2026, 03:45 AM
RE: Xenon 2 Megablast Port - by Napomex - 08-02-2026, 07:19 AM
RE: Xenon 2 Megablast Port - by sodthor - 08-03-2026, 01:07 AM
RE: Xenon 2 Megablast Port - by Napomex - 08-03-2026, 05:43 AM
RE: Xenon 2 Megablast Port - by Napomex - Today, 04:07 AM
RE: Xenon 2 Megablast Port - by Ahchay - 24 minutes ago

Forum Jump:


Users browsing this thread: 1 Guest(s)